Re: map foreach loop into array

2010-03-21 Thread Shlomi Fish
On Sunday 21 Mar 2010 17:44:49 perl wrote: > I have been trying to make this thing work .. > this is not a actual code > @s = { some elemnts}; > foreach my $s(@s){ > # i made that $s into array something like @data1 > foreach my$data(@data1) >if( $data =~ some text){ >

map foreach loop into array

2010-03-21 Thread perl
I have been trying to make this thing work .. this is not a actual code @s = { some elemnts}; foreach my $s(@s){ # i made that $s into array something like @data1 foreach my$data(@data1) if( $data =~ some text){ #here i will get my data for sure