Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: shift vs @_

by ikegami (Pope)
on Oct 02, 2006 at 21:14 UTC ( #575958=note: print w/replies, xml ) Need Help??


in reply to Re: shift vs @_
in thread shift vs @_

if 0(zero) is acceptable then don't do this.

More specifically, if one of the following is acceptable, then don't do this:

  • 0 (numeical zero),
  • '0' (the string consisting exactly of the character zero),
  • '' (the zero-length string),
  • undef (the undefined value), or
  • something that evaluates to one of the above in boolean context

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575958]
help
Chatterbox?
[msh210]: I think I just found a lie in perldoc.
[msh210]: warn: "If the last element of LIST does not end in a newline, it appends the same file/line number text as die does."

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-04-24 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.