Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: $#array issue

by citromatik (Curate)
on Jun 14, 2009 at 23:01 UTC ( #771481=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $index++;
    }
    
  2. or download this
    
    my @array = (1..9);
    print +(pop @array),"\n" while (@array);
    
  3. or download this
    my @array = (1..9);
    print "array[$_]\n" for (reverse (0..$#array));
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-08-28 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (261 votes), past polls