Think about Loose Coupling | |
PerlMonks |
Re: Re: A Matter of Style in CGIby twerq (Deacon) |
on Sep 12, 2002 at 18:15 UTC ( [id://197296]=note: print w/replies, xml ) | Need Help?? |
Good point. Seems the OP is mixing Function-Oriented with Object-oriented use of CGI.pm Have a look at http://stein.cshl.org/WWW/software/CGI/cgi_docs.html#functionvsoo, which gives a pretty good run down of the difference. Mostly, you're using the $q object, which is great. It just means that you don't need to bother importing the standard functions into your namespace with use CGI qw/:standard/; . . . my $q = new CGI; should be enough. --twerq
In Section
Seekers of Perl Wisdom
|
|