in reply to Re: frequency strings 2 files
in thread frequency strings 2 files
#!/usr/bin/perl open(FILE2, "<testfile2"); @lines2 = <File2>; %hash2 = @hash{@lines2}; open(FILE1, "<testfile1"); @lines1 = <FILE1>; foreach (@lines1) if ($_ == %hash2); %hash2 +=1
That's as far into your advice as I could get before getting lost. Our book hasn't shown us the @hash{@array} anywhere in examples yet.<\p>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: frequency strings 2 files
by ig (Vicar) on Jul 06, 2012 at 04:55 UTC | |
Re^3: frequency strings 2 files
by thundergnat (Deacon) on Jul 06, 2012 at 15:49 UTC |
In Section
Seekers of Perl Wisdom