- or download this
while (<DATAFILEIN>) {
chomp;
my %record;
@record{ @fields } = split /\|/;
- or download this
push @records, \%record;
}
- or download this
my @fields = qw(
time
...
citystatezip
fax
);
- or download this
for ( sort { $a->{'company_name'} cmp $b->{'company_name'} } @record
+s ) {
print "$_->{'company_name'} and other fields here.\n"
}
- or download this
while (<DATAFILEIN>) {
chomp;
my %record;
...
my %rec = %{ $records{$_} };
print "$rec{'company_name'} and other fields here.\n"
}