in reply to printing column info without headers
use strict; use warnings; my_search('data.txt'); sub my_search { my $file = shift; open my $in_fh, '<', $file or die "Unable to open $file: $!\n"; while (<$in_fh>) { next if (/^Number1/); my @Numbers = split; print "@Numbers\n"; } close $in_fh; }
Some comments:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing column info without headers
by annie06 (Acolyte) on Jul 09, 2008 at 15:46 UTC | |
by toolic (Bishop) on Jul 09, 2008 at 16:14 UTC | |
by annie06 (Acolyte) on Jul 09, 2008 at 15:55 UTC | |
by toolic (Bishop) on Jul 09, 2008 at 16:41 UTC | |
by blazar (Canon) on Jul 16, 2008 at 17:22 UTC | |
by blazar (Canon) on Jul 16, 2008 at 17:16 UTC |