Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: What does $#variable mean?

by Rich36 (Chaplain)
on Mar 19, 2004 at 16:11 UTC ( #338031=note: print w/replies, xml ) Need Help??


in reply to What does $#variable mean?

$#SORTEDLENDERS indicates that there's an array @SORTEDLENDERS. The $#arrayname syntax holds the index of the last member of an array.

my @array = ('foo', 'bar', 'baz'); # $#array = 2 # because Perl's array indexes start at 0

«Rich36»

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2021-04-14 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?