Re: General Perl/Web questions
- From: perrin@xxxxxxxxxxxx (Chad Perrin)
- Date: Fri, 28 Apr 2006 10:43:05 -0600
On Fri, Apr 28, 2006 at 10:21:43AM -0400, Leonid Grinberg wrote:
Alternatively, you can make a common_functs.pl file, where each one of
the above actions is performed in a subroutine (the file should only
have subroutines, and should not do anything outside of them (except
like use strict;)) and then, from within each file, you could do
something like
BEGIN
{
do ('common_functs.pl');
die if $@;
}
Is there some reason in particular you wouldn't use require instead?
It sounds, overall, like the OP is just looking to separate the Model
from the View and Controller functionality to some extent -- but doesn't
yet know it.
--
Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ]
unix virus: If you're using a unixlike OS, please forward
this to 20 others and erase your system partition.
.
- References:
- General Perl/Web questions
- From: Steve Gross
- Re: General Perl/Web questions
- From: JupiterHost.Net
- Re: General Perl/Web questions
- From: Leonid Grinberg
- General Perl/Web questions
- Prev by Date: Re: Chomp method
- Next by Date: Re: Perl Substitution
- Previous by thread: Re: General Perl/Web questions
- Next by thread: looping over an array of hashes
- Index(es):
Relevant Pages
|
|