in reply to grep return the entire file not the line which matches
You'll end up with something like:
open(ENG,"<en_1000") or die $!; my @eng_dat=<ENG>; close ENG; my $en="EN-1000-0003-3"; my @data= grep /$en/,@eng_dat; print @data;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: grep return the entire file not the line which matches
by vikashiiitdm (Novice) on Aug 03, 2011 at 17:07 UTC | |
by jethro (Monsignor) on Aug 03, 2011 at 17:52 UTC | |
by FunkyMonk (Chancellor) on Aug 03, 2011 at 17:44 UTC |