in reply to How should I store/retrieve my data

Untested.

my %files for my $file (@files) { my ($name,$sfx) = split'.', $file; open FILE, '<', $file or doe $!; push @{ $file{$name}{$sfx} }, <FILE>; close FILE; } for my $uniq ( keys %files ) { for my $sfx ( 'a' .. 'c' ) { for my $line ( @{ $files{$uniq}{$sfx} } ) { #do something with line } } }

Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

Replies are listed 'Best First'.
Re: Re: How should I store/retrieve my data
by Limbic~Region (Chancellor) on Jan 23, 2003 at 20:31 UTC
    Thanks BrowserUk!
    This was sufficient to get over my hurdle, though I had to add/modify a few things.

    L~R