Perl Problem

Scott Penrose scottp at dd.com.au
Tue Sep 9 00:23:41 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Tuesday, Sep 9, 2003, at 13:43 Australia/Melbourne, Rick Measham 
wrote:

>>> ROFL! Nah, seems to be a problem with warn and my perl. I've noticed 
>>> before that  I hang if I warn too much. I've done the naughty thing 
>>> and set $^W to 0 for the foreach block. Figured there shouldn't be 
>>> any harm done there :)
>
> At 1:21 PM +1000 9/9/03, Scott Penrose wrote:
>> FYI for neatness, if you are using Perl 5.6 + you can say
>> 	'no warnings;'
>>
>> rather than futz with $^W - easier to read and forward compatible.
>
> Wouldn't that turn off warnings for everywhere though? I just want 
> them off for the local block.

no works fine for local block

	{
		no warnings;
		do something bad;
	}

Scott
- -- 
Scott Penrose
Welcome to the Digital Dimension
http://www.dd.com.au/
scottp at dd.com.au

Dismaimer: Contents of this mail and signature are bound to change 
randomly. Whilst every attempt has been made to control said 
randomness, the author wishes to remain blameless for the number of 
eggs that damn chicken laid. Oh and I don't want to hear about 
butterflies either.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE/XWPgDCFCcmAm26YRAh0vAJ4gUIak3U3XP2CrKfb53kph12WmYwCgkdan
40+T0ji+rGiLzWcM71u0cC0=
=Cq/X
-----END PGP SIGNATURE-----




More information about the Melbourne-pm mailing list