in reply to Re^3: Learning about hashes
in thread Learning about hashes
use strict; use warnings; my %eslist; open(inFile, "< C:\\input.txt") || die "Unable to open file - $!\n"; open( OUTFILE, "> C:\\output.txt" ) || die "Unable to open write file! - $!\n"; while(<inFile>) { my @record = split /\|/, $_; my $tn = $record[0]; my $err = $record[1]; my $ent = $record[2]; %eslist = ($record[3] => 1); my $coid = $record[4]; } close inFile; close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Learning about hashes
by GrandFather (Saint) on Oct 20, 2009 at 20:17 UTC |