Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Four annoying warnings

by tobyink (Canon)
on Dec 09, 2012 at 00:05 UTC ( [id://1007936]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $price = sprintf "£%d.%02d", $pounds||0, $pence||0;
    
  2. or download this
    my $price = sprintf "£%d.%02d", $pounds, $pence;
    
  3. or download this
    print 'a' + 'b', $/;    # warns
    print []  + {},  $/;    # no warning
    
  4. or download this
    use v5.12;   # behaviour of split changed in 5.12.
    sub a { split //, 'xyz'; 1 }  a();  # warns
    sub b { split //, 'xyz' }  b(); 1;  # no warning
    
  5. or download this
    no warnings 'numeric';
    no warnings 'once';
    no warnings 'uninitialized';
    no warnings 'void';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://1007936]
Approved by GrandFather
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-28 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found