Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: A Matter of Style in CGI

by twerq (Deacon)
on Sep 12, 2002 at 18:15 UTC ( [id://197296]=note: print w/replies, xml ) Need Help??


in reply to Re: A Matter of Style in CGI
in thread A Matter of Style in CGI

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197296]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-23 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found