rose has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a @t_loop contains the following :
$VAR1 = { 'value_loop' => [ { 'value' => 'Sun' }, { 'value' => ' Mon' }, { 'value' => ' Tue' }, { 'value' => ' Wed' } ], 'label' => 'Dow' };
or
$VAR1 = { 'value' => 'UK', 'label' => 'Country' };
I need to store whole value into a scalar. ie.
$final .=$_->{'label'} . '=' . $_->{'value'} foreach @t_loop;
But, it doesn't store value_loop.
Please guide me.
Thanks in Advance,
Rose
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: store value from AoHoH into a scalar
by ikegami (Patriarch) on Oct 31, 2006 at 07:33 UTC | |
|
Re: store value from AoHoH into a scalar
by planetscape (Chancellor) on Oct 31, 2006 at 16:08 UTC |