I consider myself quite fluent in PHP and am rather familiar with nearly all of the important aspects and uses, as well as its pratfalls. This in mind, I think the major problem in taking on Perl is going to be with the syntax. Aside from this (a minor hindrance, really, as I'm rather sold on the fact that Perl's is far more readable), what are some key differences you think I should make myself aware of prior to taking on the language?
some different things worth a read about:
After you learn the basics of Perl, I highly recommend the book "Perl Best Practices" by Damian Conway.
It really changes your writing style, and the way you think about programming, and in particular, makes your Perl programs much more readable, and maintainable.
I had been using Perl for a very long time before doing any PHP, and I found the transition fairly easy.
The syntax is very similar between PHP and Perl. Obviously there are differences and you have to learn a new set of libraries (CPAN has modules for most uses, so before you implement any new tools have a look at CPAN).
Regexs are less verbose and imo a little easier to use in Perl. On the other hand classes in PHP looks a more like what you would expect if you know other OO languages. To me OO in Perl seems a little tacked on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With