I've edited it down to this
#!usr/bin/env perl use warnings; use strict; open my $test_fh, '<', @ARGV or die "Can not open file $!\n"; while (<$test_fh>) { my @line = split (); # if ($line[1] =~ /P/i); print "$line[1]"; } close ($test_fh);
I'm still getting the same thing. I think my split() needs something but I have no idea what. Any help?
In reply to Re^2: Help with split() function
by negzero7
in thread Help with split() function
by negzero7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |