Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: size of an array ref

by fionbarr (Friar)
on Feb 24, 2012 at 13:11 UTC ( #955915=note: print w/replies, xml ) Need Help??


in reply to Re: size of an array ref
in thread size of an array ref

that's it! Thanks guys! # array: $ perl -wE 'my @a = qw/a b c/; say scalar @a' 3 # array ref: $ perl -wE 'my $a = qw/a b c/; say scalar @$a'perfect!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2019-10-16 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?