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){
> #here i will get my data for sure
> i need to get that data into a global array
Just use:
<<<
push @array_of_extracted_data, $data;
>>>
You can also try using http://perldoc.perl.org/functions/grep.html ,
http://perldoc.perl.org/functions/map.html , and friends.
Regards,
Shlomi Fish
> }
>
> honestly i am not that good at perl i have been exploring perl
> thanks you
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/