in reply to Re: Help with split() function
in thread Help with split() function
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help with split() function
by cdarke (Prior) on Mar 19, 2008 at 02:02 UTC | |
|
Re^3: Help with split() function
by halfcountplus (Hermit) on Mar 19, 2008 at 02:16 UTC |