in reply to Re: use CGI vs use CGI qw(:standard)
in thread use CGI vs use CGI qw(:standard)

Thanks, Brad!

I changed it to 'use CGI'.

There were problems at first because in my code I had lines such as 'print header' and 'my $action = param('query'). I think those caused the script to die. I changed the former to 'print $q->header' and the latter to '$action = $q->param('query') and the script works like before. cheers :)

  • Comment on Re: Re: use CGI vs use CGI qw(:standard)

Replies are listed 'Best First'.
Re: Re: Re: use CGI vs use CGI qw(:standard)
by Grygonos (Chaplain) on Apr 19, 2004 at 18:35 UTC
    As Ovid points out in one portion of the tutorial.. one of the problems with use CGI qw(:standard); is namespace. The functions imported via the  :standard type would invalidate functions of the same name in the local file.

    Grygonos