----- Original Message -----
From: "Conrad, Bill (ThomasTech)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 06, 2006 6:38 PM
Subject: foreach question
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
foreach $i(0..$#list) {
print "Index is ", $i*1, ", value is $list[$i]\n";
}
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs