http://qs321.pair.com?node_id=144061


in reply to find the element position of $scalar

for(my $i=0;$i<@array;$i++) { print("$array[$i] is the $i element\n"); }


The white hole.

Replies are listed 'Best First'.
Re: Re: find the element position of $scalar
by Anonymous Monk on Feb 08, 2002 at 08:41 UTC
    Thanks for the quick reply, however I need the results inclosed within the foreach statement as shown above.