Thanks, Timothy, I almost had it before I decided to look back at the list.
My only concern was the creation of data space for each new key, I guess
it's a non issue. ALTHOUGH, if I have repetitions of keys, code below would
obliterate previous key data, would it not? I guess I'm looking at a hash of
lists. hmm....
- Jamei
"Timothy Johnson"
>
> Why not something like this?
>
> my %hash;
> while(<SM_FILE>){
> chomp $_; #remove the newline
> my($key,$value) = split(/,/,$_); #split by commas or whatever
> $hash{$key} = $value; #assign the value here
> }
>
> foreach(sort keys %hash){
> print "$key => $value\n";
> }
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]