There's more than one way to do things | |
PerlMonks |
Help with proper construction of callable scalars from a Module, please.by taint (Chaplain) |
on Nov 13, 2013 at 01:30 UTC ( [id://1062288]=perlquestion: print w/replies, xml ) | Need Help?? |
taint has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, Monks. First let me apologize. I know this is a "brain dead" question. But it appears that someone has switched my Thinking cap, for a Dunce cap today. For the life of me, I'm just drawing blanks. Anyway. What I'm trying to do is simply create a simple portal/CMS arrangement. Where I place all of the commonly (repetitious) used stuff in a module -- say; pageblocks.pm. Then I simply call all the stuff that is common to all pages from the Module. eg; Then it's simply a matter of constructing a page thusly (index.cgi):
While this actually works. In my gut, I know I'm doing it incorrectly.
Would anyone care to throw me a bone? --Chris #!/usr/bin/perl -Tw use Perl::Always or die; my $perl_version = (5.12.5); print $perl_version;
Back to
Seekers of Perl Wisdom
|
|