>>>>> "O" == Owen <rc...@pcug.org.au> writes:
O> The program below works, but I don't believe I have to make the O> reference # my $svgs = \...@svgs; to get it into the hash; believe it. O> I think I should be able to do something like O> $folders{$folder} = @svgs; why do you think that should work? a hash element can only hold one value. an array can be many values. also using an array in scalar context (as above) is defined to return its count. O> print "$folders{Ztyx}->[3]\n"; O> But can't get my head around how to do it (The error message ... O> Can't use string ("4") as an ARRAY ref while "strict refs" in use ..) O> should tell me something, but I'm not sure what. it tells you that you assigned an array and not a reference to the hash element. this is all well covered in the various perl documents on references including several tutorials: perlreftut perllol perldsc perlref read those and it will (should) all make sense to you. if you still need help, come back here with more questions. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/