in reply to Slurping BIG files into Hashes
Slurp it into an array first, then move to a hash:
my %lookup = map { substr($_, 0, 13) => substr($_, 13) } <CONFIG>;
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Slurping BIG files into Hashes
by Elgon (Curate) on Jun 18, 2003 at 18:10 UTC |