with "use CGI;" you are using the module without specificly importing methods. With "use CGI qw(:standard);" you are asking CGI to export a set of methods marked by the export block :standard.
Example code:
Another example:#!/usr/bin/perl -w ########################################################## use strict; use warnings; use diagnostics; use CGI; my $q=new CGI; print $q->header,$q->start_html(-title=>"blah"); . . .etc.
#!/usr/bin/perl -w use strict; use warnings; use diagnostics; use CGI qw @ :standard @; print header,start_html(-title=>"blah"); . . . . etc.
FMI: man CGI
Peter @ Berghold . Net
Sieze the cow! Bite the day!
Nobody expects the Perl inquisition!
Test the code? We don't need to test no stinkin' code!
All code posted here is as is where is unless otherwise stated.
Brewer of Belgian style Ales
In reply to Re: CGI Question
by blue_cowdawg
in thread CGI Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |