Thanks, Jeff.
Yes, index ... with all the special names avail I thought there might be one

to identify the position of the element within an array. 
Bob


-----Original Message-----
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 9:45 PM
To: Sturdevant-Contractor, Robert W
Cc: [EMAIL PROTECTED]
Subject: Re: Special Name for @ Element


On Nov 19, Sturdevant-Contractor, Robert W said:

>Is there a special name (like $_) to identify the array element being
>addressed as in the following code:
>
>foreach $element (@array) { do something };

I think you mean "array index".  $element is the array element.  And no,
there is no such feature.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]

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

Reply via email to