in reply to Re: using Set::Scalar
in thread using Set::Scalar
or you could do it like this:my @array = (1,2); my %hash; $hash{X} = \@array;
Generally, though, you can look at the perldsc man page for help on this subject.my %hash = ( X => [ 1,2 ], );
|
|---|