lolly has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/local/bin/perl -w use strict; open (FILEHANDLE, "<file.parse") or die "unable to open file"; my $line; my @array; while (<FILEHANDLE>) { $line = $_; chomp ($line); @array = (); @array = split (/\s+/, $line); # error messages say that something is uninitialised in the below line +! print STDOUT "$array[13]\t$array[14]\n"; } open (OUTFILE, ">$$.output"); print OUTFILE "$array[13]\t$array[14]\n"; close OUTFILE; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hashes of arrays ??
by davis (Vicar) on Apr 18, 2002 at 10:02 UTC | |
|
Filter for the lines where your data is...
by RMGir (Prior) on Apr 18, 2002 at 12:07 UTC | |
|
Re: hashes of arrays ??
by TheHobbit (Pilgrim) on Apr 18, 2002 at 11:31 UTC | |
|
Re: hashes of arrays ??
by Chady (Priest) on Apr 18, 2002 at 10:24 UTC | |
|
Re: hashes of arrays ??
by broquaint (Abbot) on Apr 18, 2002 at 15:00 UTC |