in reply to using Set::Scalar

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: using Set::Scalar
by lackita (Sexton) on Feb 20, 2008 at 15:35 UTC
    You can't have a hash key point at an array, but you can have a hash key point at an arrayref.
    my @array = (1,2); my %hash; $hash{X} = \@array;
    or you could do it like this:
    my %hash = ( X => [ 1,2 ], );
    Generally, though, you can look at the perldsc man page for help on this subject.