----- Original Message -----
From: Conrad, Bill (ThomasTech)
Sent: 4/6/2006 12:38:20 PM
To: [email protected]
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
> 

No.  You either use a counter, or a for() loop (which has a built-in counter).

    -dZ.


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

Reply via email to