Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to make array references from scalar value

by Anonymous Monk
on Jul 29, 2009 at 11:39 UTC ( [id://784208]=note: print w/replies, xml ) Need Help??


in reply to How to make array references from scalar value

#!/usr/bin/perl -- use strict; use warnings; use Safe; my $result = Safe->new->reval("[a,b,{perl=>monk}]"); use Data::Dumper; print Dumper($result); __END__ $VAR1 = [ 'a', 'b', { 'perl' => 'monk' } ];
Safe Undumping

Replies are listed 'Best First'.
Re^2: How to make array references from scalar value
by santhosh_89 (Scribe) on Jul 29, 2009 at 12:35 UTC

    I checked the Safe modules from cpan.It has some bugs.It will cause the memory problem and it doesn't work under 5.5.5 version with version.pm.

Re^2: How to make array references from scalar value
by santhosh_89 (Scribe) on Jul 29, 2009 at 12:05 UTC
    Is it secure method to use this package and reval method in real time project.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://784208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found