in reply to Re: Hash of Hash
in thread Hash of Hash
You might want to usemy $string = q(one tow three four five six); my @words = split(/ /, $string);
As you no longer use $strings, there is no need for you to split on that.my @words= qw(one tow three four five six);
$hash1{$words[0]}= { $words[1] => join(' ', @word[2..$#words]) };
|
|---|