in reply to Array to hash refs
Abigailmy @array = qw /a b c/; my $hash; my $val = 1; ($hash, $hash -> {pop @array}, $val) = (undef, $val, $hash) while @arr +ay > 1; $hash -> {pop @array} = $val;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Array to hash refs
by BrowserUk (Patriarch) on Aug 14, 2002 at 08:06 UTC | |
Re: Re: Array to hash refs
by aufrank (Pilgrim) on Aug 13, 2002 at 16:25 UTC | |
by Abigail-II (Bishop) on Aug 13, 2002 at 16:28 UTC |
In Section
Seekers of Perl Wisdom