Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 lurking in the Monastery: (16)
As of 2014-07-11 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls