hi list,

2 questions about arrays:

- I want to take 2 elements a time from an array within a foreach control structure, which should be something like:
foreach $a $b (@array) {...}. it this possible in perl??
- is it possible to search an array for a certain element, and that the search returns the element index? eg. searching for 156 in the array (123, 456, 156, 1354, 35164, 654656, 654, 846) should give 2


cheers

Stefan Weckx
VIB MicroArray Facility



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to