in reply to Better solution to the code
# your data is in %tag open (IN, "<Input_file.dat") or die "Cannot read $!\n"; open (OUT,"+>Result_file.txt") or die "Cannot create file $!\n"; while (<IN>) { print OUT $_ if exists $tag{$_}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Better solution to the code
by moritz (Cardinal) on Jan 25, 2008 at 10:35 UTC | |
|
Re^2: Better solution to the code
by cdarke (Prior) on Jan 25, 2008 at 12:56 UTC |