in reply to Slurping BIG files into Hashes
I'd be tempted to do it thusly, as it appears that you're throwng away the value part:
...or, am I missing something?while (<config>) { chomp; my ($key, $value) = /^(.{1,13})(.+)$/; $lookup{$key} = $value; }
Update: perldoc -f substr has shown me the light.
Update the Second: As has hardburn.
Cē
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Slurping BIG files into Hashes
by hardburn (Abbot) on Jun 18, 2003 at 17:55 UTC |
In Section
Seekers of Perl Wisdom