getting all params while referencing bugzilla's

David Miller justdave at
Tue Aug 19 18:17:46 UTC 2003

On 8/19/2003 11:04 AM -0700, Edward Tsai wrote:

> hi,
> normally, i would do a
> #!/usr/bin/perl
> use strict;
> use CGI;
> my $q = new CGI;
> print "Content-Type: text/plain\n\n";


> However, if I am using a page that references'
> bugzilla's, I've tried doing
> my @params = param;
> but it doesn't work :(

If you're using Bugzilla 2.16.x or older, the CGI module isn't even
involved, and the form variables can be referenced with $::FORM{fieldname}.

Somewhere in the 2.17.x timeframe (not sure exactly which version) Bugzilla
started using the real CGI module, but it maintains the reference to the
CGI object for you so you don't have to invoke CGI yourself.  You can get
the CGI object's reference with |my $cgi = Bugzilla->cgi;| and from that
point on, you can use $cgi (or $q as in your example) just like you're used
Dave Miller      Project Leader, Bugzilla Bug Tracking System   

More information about the developers mailing list