in reply to List Values As Multidimensional Hash Keys
use strict; use warnings; my $a = 'a1:a2:a3=foo'; my ($key, $val) = split /=/, $a, 2; $key =~ s/:/}{/g; my %hash; eval "\$hash{$key}=\"$val\"";
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: List Values As Multidimensional Hash Keys
by tachyon (Chancellor) on Mar 15, 2004 at 00:30 UTC | |
|
•Re: Re: List Values As Multidimensional Hash Keys
by merlyn (Sage) on Mar 14, 2004 at 23:44 UTC | |
by Anonymous Monk on Mar 15, 2004 at 05:55 UTC |