Re: CGI warning/error

2008-03-14 Thread Gunnar Hjalmarsson
Kashif Salman wrote: On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > The -w switch enables warnings dynamically, and apparently CGI.pm isn't > 'warnings safe'. To get rid of those warnings, you can replace the -w > switch with the warnings pragma, which is

Re: CGI warning/error

2008-03-14 Thread Kashif Salman
On Fri, Mar 14, 2008 at 11:19 AM, Kashif Salman <[EMAIL PROTECTED]> wrote: > On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> > wrote: > > Kashif Salman wrote: > > > I got this example code from the book "CGI Programming with Perl" > > > > > > #!/usr/bin/perl -wT >

Re: CGI warning/error

2008-03-14 Thread Kashif Salman
On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Kashif Salman wrote: > > I got this example code from the book "CGI Programming with Perl" > > > > #!/usr/bin/perl -wT > > > > use strict; > > use CGI; > > > > my $q = new CGI; > > print $q->header( "text/pla

Re: CGI warning/error

2008-03-14 Thread Gunnar Hjalmarsson
Kashif Salman wrote: I got this example code from the book "CGI Programming with Perl" #!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; print $q->header( "text/plain" ); print "These are the HTTP environment variables I received:\n\n"; foreach ( $q->http ) { print "$_:\n"; p

CGI warning/error

2008-03-14 Thread Kashif Salman
I got this example code from the book "CGI Programming with Perl" #!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; print $q->header( "text/plain" ); print "These are the HTTP environment variables I received:\n\n"; foreach ( $q->http ) { print "$_:\n"; print " ", $q->http( $_