laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Re: Creating a login pageby orkysoft (Friar) |
on Dec 21, 2001 at 05:06 UTC ( [id://133682]=note: print w/replies, xml ) | Need Help?? |
As japh said, you forgot the line: which generates a CGI object stored in $query. From then on, you can call methods (header() and such) on the object, while the object knows it's a CGI object (package CGI, and thus knows to find those methods in the CGI module. If you forget to initialize the object, you'd be trying to call methods on an undefined value, which doesn't belong to a package, simply because it's undefined.
In Section
Seekers of Perl Wisdom
|
|