Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Four annoying warnings

by BrowserUk (Pope)
on Dec 09, 2012 at 00:37 UTC ( #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
Node Status?
node history
Node Type: note [id://1007938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2015-07-30 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls