POV-Ray : Newsgroups : povray.general : OT: Advanced search and replace? : Re: Advanced search and replace? Server Time
8 Aug 2024 18:16:39 EDT (-0400)
  Re: Advanced search and replace?  
From: Tom Melly
Date: 4 Jan 2001 11:05:34
Message: <3a549f4e$1@news.povray.org>
"Rune" <run### [at] inamecom> wrote in message
news:3a54973b@news.povray.org...
>
> I think I once decided with myself that if I were ever to learn a real
> programming language I'd start with Pascal or Delphi or what it's
called...
>
> Why do you think PERL would be the best choice?
>

1. No compilation needed, so very fast to prototype
2. Regular expressions support built-in (perfect for your needs)
3. It's free
4. Cross-platform - no need to rewrite code for diff. o/s's
5. CGI
6. IMHO a fairly shallow learning curve.

The main criticisms against it are that it's slow and obfusticated.

Well, it may be slower than a compiled lang., but unless you are doing
high-end math, I doubt you'd notice.

As for obfusticated, that's up to the coder. The reason (IMHO) that it has
this reputation is that you can code like this:

if($value > 10){
    print $value;
}

which is clear. But the same lines can be written as:

print $value if($value > 10);

which, IMHO, is not. Also, regex can look like line noise, but that's regex
for you, and it's still damn useful.

I'm not suggesting that PERL is perfect for all tasks, but for text and file
processing it's a great tool.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.