Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Four annoying warnings

by BrowserUk (Patriarch)
on Dec 09, 2012 at 00:37 UTC ( [id://1007938]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>perl -M-warnings=uninitialized,numeric,once,void -E"123;$x=1;p
    +rint $y; 'A'+0"
    
    ...
    Name "main::x" used only once: possible typo at -e line 1.
    Use of uninitialized value $y in print at -e line 1.
    Argument "A" isn't numeric in addition (+) at -e line 1.
    
  2. or download this
    C:\test>perl -wE"say (1+2)*3"
    say (...) interpreted as function at -e line 1.
    Useless use of multiplication (*) in void context at -e line 1.
    3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found