in reply to Perl Modules

In addition to my previous comment, you seem to be reinventing the wheel here. Why not look into HTML::Template or Template? There are other templating modules in CPAN as well.

Replies are listed 'Best First'.
Re: Re: Perl Modules
by eNtropicChild (Initiate) on Apr 23, 2004 at 21:14 UTC
    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.
      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.