R. Joseph Newton wrote:
>
> Richard Heintze wrote:
>
> > > I think what you want is this:
> > >
> > > no warnings qw(uninitialized);
> > >
> >
> > Would I put this immediately after "use warnings;"?
>
> I would recommend against it, unless you are intending to
> keep all your programs very small.
Richard Heintze wrote:
> > I think what you want is this:
> >
> > no warnings qw(uninitialized);
> >
>
> Would I put this immediately after "use warnings;"?
I would recommend against it, unless you are intending to
keep all your programs very small. Any change to basic
browser/interpreter functi
From: Darin McBride <[EMAIL PROTECTED]>
> Richard Heintze wrote:
> > I have just discovered the the following code causes
> > trouble when I have "use strict" and "use warn";
> >
> > use strict;
> > use warnings;
> >
> > my $k = $q->param('xyz');
> > print qq[ \$k = $k ];
> >
> > The problem is
Richard Heintze wrote:
> I have just discovered the the following code causes
> trouble when I have "use strict" and "use warn";
>
> use strict;
> use warnings;
>
> my $k = $q->param('xyz');
> print qq[ \$k = $k ];
>
> The problem is that if there is no GET/POST param
> called xyz, we are conca
Yes. If you do it right after "use warnings;", then it will be in
effect for the rest of your script.
-Original Message-
From: Richard Heintze [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Surpressing concatenation
> I think what you want is this:
>
> no warnings qw(uninitialized);
>
Would I put this immediately after "use warnings;"?
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--
To unsubscribe, e-mail: [EM
: [EMAIL PROTECTED]
Subject: Surpressing concatenation with null warnings
I have just discovered the the following code causes
trouble when I have "use strict" and "use warn";
use strict;
use warnings;
my $k = $q->param('xyz');
print qq[ \$k = $k ];
The problem is t
I have just discovered the the following code causes
trouble when I have "use strict" and "use warn";
use strict;
use warnings;
my $k = $q->param('xyz');
print qq[ \$k = $k ];
The problem is that if there is no GET/POST param
called xyz, we are concatenating with a null value
and, when using CGI