'unless' is very slow in perl, use only when a must. 'if' is much more simple for perl to do efficiently. Or, compound the problem by
unless (1 && 2 && 3) { do_stuff() }
runs like a dog in perl.
If I did not know these little things then it would be easy for me to write perl code which runs slower than php.
Working with databases are simple in perl/php, but what if you have large flat files you need to work with and edit? C might be a better choice, unless of course you need to load the whole file every time...
I think a lot of times it really does not matter which you use, but how well you use it. I tend to use a combination, as most do, but I look for efficiency and how well it plugs into the rest of the project.
Do I want to use perl if I only want to put the time on the page? no. But you can...
I would like to see these types of conversations change to what language is the best for a givin situation, instead of what can be the 'all in wonder' of languages... (does not exist!)
besides, if there was only one way to do something, none of us would get paid very much.
though, if you have to choose... (PERL IS THE BEST).. na na
see the smart guys use it...
The NetGeo Perl module was used for the IP-to-location mapping tools [folding.stanford.edu]
They went to the moon the first time on fortran, wouldn't want to see them do it the next time though.
[edited by: netcommr at 11:30 am (utc) on Oct. 31, 2002]