in reply to Re^3: Filtering Output from two files
in thread Filtering Output from two files

open (my ($fh2),$file2) or die $!; while (my $row = <$fh2>) { chomp $row; print "$row\n"; next if $row =~ /^\s*$/; my (@fields) = split(/\|/, $row);
so i have to add $row =~ s/\s*$// after  next if $row =~ /^\s*$/; and it will work? i cant really check from here since i am at home and would have to wait another 12 hours

Replies are listed 'Best First'.
Re^5: Filtering Output from two files
by hippo (Archbishop) on Feb 06, 2018 at 16:36 UTC
    i cant really check from here since i am at home
    1. Install perl at home
    2. Mock up some sample data
    3. Run your code at home against the sample data

    Now you will know whether it works without having to wait.