Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Disable Perl warning

by tobyink (Canon)
on Nov 27, 2012 at 10:53 UTC ( [id://1005837]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Disable Perl warning
in thread Disable Perl warning

Within the scope of use strict qw(subs vars) the once warning is about a hundred times more annoying than it is useful.

void and uninitialized are also of questionable value, and although the idea of numeric warnings is good, the details are silly...

use feature qw(say); use warnings qw(numeric); my $foo = ""; say $foo+1; # why does this warn, my $bar = []; say $bar+1; # when this does not?
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1005837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found