Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
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 cooling their heels in the Monastery: (7)
As of 2020-04-05 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (34 votes). Check out past polls.

    Notices?