I love Perl for sysadmin stuff, and for processing things like .CSV files, images, all kinds of stuff. There are things in Perl, like more quoting options, that I really wish PHP had included. For example,
$mystring = qq{<img src='image.jpg' onclick="this.style.color='red';" />\n};
In PHP there are two quoting characters, ” and ’ ... but Perl can use any non-alpha-numeric as a quoting delimiter.
It is also a lot easier to use regexes in Perl, and I like things like
die unless $a;
I also often mix Perl and BASH, for quick and dirty tasks.
However, as soon as I start using web pages, I REALLY like all the functions built into PHP. After all, it was DESIGNED for the web, and that shows. I find I am doing over half my work now in PHP, even though it is not my favorite language overall.
For a couple of years I taught an introductory programming course in Python, and I would still tend to use it for teaching, partly because it has a nice textbook you can download as a PDF and use for free. But I couldn’t really get used to having whitespace be so important, and also it made me do too much typing.
I looked at Ruby, and was strongly considering switching to Ruby and Rails, when I came across CI. I really like the design of the language, but when I actually tried to use Ruby and Rails on the web, I backed off. There were just too many hoops to jump through to get things set up. This may be easier, almost a year later, when many more web hosting services support Rails, but also I didn’t have time to learn a new language.
What I think I intend to come out of this rambling, is that the choice of programming language usually comes down to issues other than the inherent strength of the language. I have even heard if you want to be assured of finding niche employment at a good wage forever, learn Cobol. It would be boring work, but as the few remaining Cobol programmers retire, there will always be a business somewhere that just needs maintenance of its Cobol stuff.