Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2017-07-23 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (346 votes). Check out past polls.