Thanks Enlil, that was very helpful. Turns out what I was looking for was a hash of hashes. Here's the code I came up with:
#! c:\perl\bin use strict; use warnings; my @temp=(); my %HoH=(); while(<>){ (/^Title/) and next; chomp; @temp=split/\t/; $HoH{$temp[0]}{file}=$temp[1]; $HoH{$temp[0]}{offset}=$temp[2]; }
-----------------------------------
Any comments about coding style are welcome.In reply to Re: Re: newbie hash question
by dannoura
in thread newbie hash question
by dannoura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |