you can run a counter inside the loop

Pierre

>From: Rasoul Hajikhani <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Index of foreach
>Date: Mon, 17 Sep 2001 12:23:51 -0700
>
>Hi there,
>is there any way to know what is the "current" index value in a foreach
>loop?
>
>EX:
>
>foreach my $var (@array)
>{
>         # need the index of the array
>}
>
>Thanks in advance.
>-r
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to