Phoenix.pm: New meeting place
jim
jimm at amug.org
Thu Sep 2 15:12:58 CDT 1999
> \_ my $q=new CGI;
> \_ foreach ($q->param()) {
> \_ ${$_} = $q->param($_);
> \_ }
>
> Is it just me, or does this replicate the effort of
>
> $q->import_names('main');
>
Ooops! Red flag..
The CGI Docs warn that importing into 'main' is a "major security risk"
$q->import_names('q'); is recommended...
that gives you $q::field1, $q::field2..etc..
thought it was worth mentioning.. ;-)
Jim M.
> Just curious.
>
> Not only is there more than one way to do it, there's probably too
> many. :-)
>
--
A computer lets you make more mistakes faster than any invention
in human history - with the possible exceptions of handguns and
tequila. -- Mitch Ratcliffe
More information about the Phoenix-pm
mailing list