A ref too far: assign an array ref to an array ref to a hash element
From: Angie Ahl (alists_at_vertebrate.co.uk)
Date: 05/29/04
- Next message: John W. Krahn: "Re: hour -1 routine"
- Previous message: Robert Citek: "Re: Request Tracker and HTML::FormatText"
- Next in thread: John W. Krahn: "Re: A ref too far: assign an array ref to an array ref to a hash element"
- Reply: John W. Krahn: "Re: A ref too far: assign an array ref to an array ref to a hash element"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 May 2004 23:00:29 +0100 To: Perl List <beginners@perl.org>
Hi people
I'm trying to create a hash of arrays of arrays and I'm having a mind
twisting time with references.
my $key = "some_varying_text"
my %pathhash;
my @link = ($LinkUrl, $LinkTitle);
I'm trying to set $pathhash{$key} to an array that contains the array
@link.
ie there will be multiple @link arrays in $pathhash{$key}.
I just can't work out how to assign an array ref to an array ref to a
hash element. I think that's right.
Any clues anyone... please, 4 hours down and a lot of RTFM'ing hasn't
helped (quite the opposite actually;)
Angie
- Next message: John W. Krahn: "Re: hour -1 routine"
- Previous message: Robert Citek: "Re: Request Tracker and HTML::FormatText"
- Next in thread: John W. Krahn: "Re: A ref too far: assign an array ref to an array ref to a hash element"
- Reply: John W. Krahn: "Re: A ref too far: assign an array ref to an array ref to a hash element"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|