in reply to newbie hash question

Un-Tested

open(IN, "<file") or die "failed: $!"; while(<IN>) { chomp; my ($title, $file, $offset ) = split(/\t/, $_); $offsets{$title} = $offset; $files{$title} = $file; }

2 separate hashes. This is assuming that $title is unique.

To use:

$title = 'somethng interesting'; $offset = $offsets{$title}; $file = $files{$title};
--Bob Niederman, http://bob-n.com