santhosh_89 has asked for the wisdom of the Perl Monks concerning the following question:
The eval is given null value. my $a="[a,b,{perl=>monk}]"; my $b=eval $a; print Dumper($b); Following coding is working fine. my $a="['a','b',{'perl'=>'monk'}]"; my $b=eval $a; print Dumper($b);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to make array references from scalar value
by ELISHEVA (Prior) on Jul 29, 2009 at 11:25 UTC | |
|
Re: How to make array references from scalar value
by moritz (Cardinal) on Jul 29, 2009 at 11:28 UTC | |
|
Re: How to make array references from scalar value
by Anonymous Monk on Jul 29, 2009 at 11:26 UTC | |
|
Re: How to make array references from scalar value
by Anonymous Monk on Jul 29, 2009 at 11:39 UTC | |
by santhosh_89 (Scribe) on Jul 29, 2009 at 12:35 UTC | |
by santhosh_89 (Scribe) on Jul 29, 2009 at 12:05 UTC |