Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

How to get a reference from an eval() string?

by exilepanda (Pilgrim)
on Sep 06, 2016 at 09:26 UTC ( #1171237=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    use strict;
    ...
        $ref->["$lastPart"] = $newData; # Remark 1
    }
    print Dumper $x;
    
  2. or download this
    $ref = eval '$base$return_from_sub';
    $ref = [/whatever/];
    
  3. or download this
    $ref = eval '\$refString';
    deference( $ref ) = $whatever ;# [] {} ""
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1171237]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-10-17 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?