in reply to pushing similar lines into arrays
Update: Sigh. I'm late.use strict; my $head; my %hash; while (<>) { $head = (split)[0]; push @{$hash{$head}}, $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: pushing similar lines into arrays
by Phydro (Initiate) on Mar 18, 2004 at 05:18 UTC |