Update: Note that in Perl, 0 is the first position in an array.my ( $result, $count ) = (undef(),0); map ( $result ||= $count if ( $_ eq "string" ); $count++; } @array;
-M
Free your mind
In reply to Re: Returning position?
by Moron
in thread Returning position?
by theoya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |