in reply to Re^6: Filtering Output from two files
in thread Filtering Output from two files
the O/p i get is this <OJL38 4> i wanna see all the 4 values from first column#!/nairvig/bin/perl use strict; use warnings; use Data::Dumper; my $file1 = 'file4'; my $file2 = 'file3'; open (my ($fh2),'<',$file1) or die $!; while (my ($row) = <$fh2>) { chomp $row; my (@fields) = split(/\|/, $row); next if $row =~ /^\s*$/; print "<$fields[0]>\n "; #print $row if exists $hash{$fields[0]}; } close $fh2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Filtering Output from two files
by roboticus (Chancellor) on Feb 06, 2018 at 08:47 UTC | |
by Anonymous Monk on Feb 06, 2018 at 09:12 UTC | |
by Anonymous Monk on Feb 06, 2018 at 09:22 UTC | |
by roboticus (Chancellor) on Feb 06, 2018 at 18:11 UTC | |
|
Re^8: Filtering Output from two files
by Anonymous Monk on Feb 06, 2018 at 06:22 UTC | |
by Anonymous Monk on Feb 06, 2018 at 06:30 UTC |