Dermot wrote:
> On 13 February 2010 06:42, Owen <rc...@pcug.org.au> wrote:
>> The program below works, but I don't believe I have to make the
>> reference  #  my $svgs = \...@svgs;     to get it into the hash;
>>
>> I think I should be able to do something like
>>
>>  $folders{$folder} = @svgs;
>>  print "$folders{Ztyx}->[3]\n";
> 
> 
> You want a array reference there so
> 
> $folders{$folder} = \...@svgs;
> 
> Saving you from having to make this assignment;
> 
>    my $svgs = \...@svgs;
>    $folders{$folder} = $svgs;

You can also do both at once:

   $folders{$folder} = my $svgs = \...@svgs;



-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to