Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
thanks :-)#! /usr/local/bin/perl -w use strict; open (FILEHANDLE, $ARGV[0]) or die "unable to open file"; open (OUTFILE, ">$$.output"); my $line; my @array; while (<FILEHANDLE>) { $line = $_; chomp ($line); @array = (); @array = split (/\s+/, $line); print STDOUT "$array[13]\t$array[14]\n"; print OUTFILE "$array[13]\t$array[14]\n"; } close FILEHANDLE; close OUTFILE; exit;
Edit kudra, 2002-05-07 Changed title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: can't spot the error
by demerphq (Chancellor) on May 07, 2002 at 16:05 UTC | |
by converter (Priest) on May 07, 2002 at 17:29 UTC | |
by demerphq (Chancellor) on May 08, 2002 at 08:46 UTC | |
|
Re: can't spot the error
by hotshot (Prior) on May 07, 2002 at 16:04 UTC | |
|
Re: can't spot the error
by erikharrison (Deacon) on May 07, 2002 at 16:12 UTC |