Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how internally $#array is working in Perl

by suhailck (Friar)
on Aug 13, 2010 at 05:52 UTC ( [id://854834]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -le '@arr=qw(10 1 2 3 4);$[=3;print $arr[$_],"\t",$_ for 0 .. $#a
    +rr;'
    10    0
    3    1
    ...
    2    5
    3    6
    4    7
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found