Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Index of Items in Array using foreach loop

by default_user (Initiate)
on Feb 22, 2013 at 10:44 UTC ( #1020128=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @SampleArray = ("one","two","three" );
    my $Arrayindex = 0;
    ...
        print $ArrayItem , ' is at location ' , $Arrayindex , ' in the arr
    +ay' , "\n";
        $Arrayindex++;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1020128]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-10-02 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls