Conrad, Bill (ThomasTech) wrote:
Hi All

        Give a foreach loop

        foreach $entry ( @list ) {

        }

        Is there a way to get the position index within @list $entry is from
without counting the iterations of the loop


my @List = qw(one two three);

for(0 .. $#List) {
    print "Indice $_ contains: $List[$_]\n";
}


-Dave
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to