Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )

by LanX (Chancellor)
on Dec 07, 2012 at 16:40 UTC ( #1007787=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    size @a := scalar @a;
    
  2. or download this
    size (a..c) := scalar @{[a..c]}
    
  3. or download this
    sub size([@$];@) {
    ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1007787]
Front-paged by Arunbear
help
Chatterbox?
[stevieb]: I'm working on hiding the fact the software needs MetaCPAN::Client, as I often have a hell of a time installing it. I'm going to change it to let the user know if they do revdep that it needs to be installed, and remove that distribution ..
[stevieb]: ...from being a prereq

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-06-25 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.