tercoz has asked for the wisdom of the Perl Monks concerning the following question:
I have 4 perl scripts that forms personal area on some website.
One does login,
another sends e-mail for user to proove his registration,
third shows area page,
fourth checks data from that page and redirects users to the payment system.
Every script has its own subs, and some common subs from the module PersonalArea.pm
What if I put all the subs from those 4 scripts into that module, then I shall be able to ease testing of those subs, and may be able to use something like mod_perl in the future
is it a good way to flush all the subs into single module?
Isn't it a good thing to have all the code in one place ,is it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to properly use modules?
by Happy-the-monk (Canon) on Apr 21, 2012 at 06:12 UTC | |
by Anonymous Monk on Apr 21, 2012 at 06:53 UTC | |
by tercoz (Acolyte) on Apr 21, 2012 at 09:59 UTC | |
by Anonymous Monk on Apr 21, 2012 at 10:41 UTC |
Back to
Seekers of Perl Wisdom