Re: Parse data

2010-09-25 Thread Jeff Pang
2010/9/25 Santana : > Hi all, > i'am newbie in PERL and i would liked your point of views/opinion for > the following situation : > > i have a file with some lines that presents this format of > information : > > > Anne Gomez ; "5th Avenue ;";"925 NY  " ; 1978/10/11 > ... > > the ";" is the se

Re: How does grep command compare a hash element with an array of hash references?

2010-09-25 Thread John W. Krahn
Dr.Ruud wrote: On 2010-09-25 01:57, Vaishnavi Saba wrote: My query: In the code shown below, How does *grep* compare a scalar( * $seen{$_}* ) with an array of hash references ( *...@_* ). = @common = inter( \%foo, \%bar, \%joe ); sub inter { my %seen; for my $href ( @_ ) { while (my $

Re: How does grep command compare a hash element with an array of hash references?

2010-09-25 Thread Dr.Ruud
On 2010-09-25 01:57, Vaishnavi Saba wrote: My query: In the code shown below, How does *grep* compare a scalar( * $seen{$_}* ) with an array of hash references ( *...@_* ). = @common = inter( \%foo, \%bar, \%joe ); sub inter { my %seen; for my $href ( @_ ) { while (m

Parse data

2010-09-25 Thread Santana
Hi all, i'am newbie in PERL and i would liked your point of views/opinion for the following situation : i have a file with some lines that presents this format of information : Anne Gomez ; "5th Avenue ;";"925 NY " ; 1978/10/11 ... the ";" is the separator of fields and i know the folling