
santhosh_89
Novice
Jul 30, 2009, 8:47 PM
Post #1 of 2
(1921 views)
|
How to change the scalar value to some other context.
|
Can't Post
|
|
I want to change the scalar value to some other context(array/hash references). Actually my input will be as following. Scalar will be a Input : '[1,'test',[{2=>3,3=>'test_56'},2,3,3]]' If the scalar contains [],{}.I want change it to array-reference,hash-ref. The output should be as following if i print by using dumper module. Dumper output : $VAR1 = [ 1, 'test', [ { '3' => 'test_56', '2' => 3 }, [ 2 ], [ 3 ], 3 ] ];
|