in reply to Re: Perl Modules
in thread Perl Modules

As I said, I am a PHP programmer and I am forced to recode alot of my existing codes in Perl. I need to know how to code OOP in Perl, as well as a few other techniques, as I will be converting complex PHP scripts. I realize that this is a very simple code; what better way to start learning perl?? I still wouldn't learn a thing if i just went and used the other template modules.

Replies are listed 'Best First'.
Re(3): Perl Modules
by bart (Canon) on Apr 24, 2004 at 09:00 UTC
    For most parts, Perl is very much like PHP. You can easily make 90% of most PHP code work in Perl with only trivial changes, such as splitting up PHP's arrays into Perl's arrays and hashes. Note that an array in PHP is like a Perl's array- and hash-refs, not plain arrays/hashes. And you'll have to translate those built-in keywords in PHP without any equivalent in Perl, into calls into modules.

    OO is one area where Perl and PHP are quite different. For a very gentle intro to Perl OOP, check out perlboot.