in reply to Differences between normal hashes and DBM tied hashes
You need to store the data itself in the file:
then you'll be storing the actual data that you want.$TEST{$key} = join( "|", @filedata )
And of course, you could improve the efficiency a bit by not splitting, stripping and rejoining, like so:
You're finding the first sequence up to the pipe, and stripping it off, but you're then stashing what you stripped into $key.s/^([^|]+)|//; my $key = $1; $TEST{$key} = $_;
xoxo,
Andy
--
Throw down the gun and tiara and come out of the float!
|
|---|