in reply to Re^3: Require or Do vs. more maintenance
in thread Require or Do vs. more maintenance
#!c:/apache/perl/bin/perl.exe BEGIN { $| = 1; open (STDERR, ">&STDOUT"); print qq~Content-type: text/html\n\n~; } use CGI; use strict; use lib qw( c:/apache/cgi-bin/lib ); use MyAppCommon; # use is basically like require... see the docs for my $foo = new CGI; print $foo->header; MyAppCommon::top(); print "Test content (should be in middle)<br><br><br><br>\n"; MyAppCommon::bottom();
use strict; sub top { print "Top stuff<br><br>"; } sub test { print "Bottom stuff<br><br>"; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Require or Do vs. more maintenance
by etcshadow (Priest) on Jun 26, 2004 at 22:45 UTC | |
|
Re^5: Require or Do vs. more maintenance
by fglock (Vicar) on Jun 26, 2004 at 22:42 UTC |