Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Any module for saving data as perl data?

by Ovid (Cardinal)
on Apr 29, 2016 at 10:17 UTC ( [id://1161867]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my $a = 'hello';
    my @foo = qw(1 2 3);
    my %bar = (this => 'that', one => 'un');
    print Data::Dumper->Dump( [$a, \@foo, \%bar], [qw/$a *foo *bar/] );
    
  2. or download this
    use Data::Dumper::Names;
    my $a = 'hello';
    my @foo = qw(1 2 3);
    my %bar = (this => 'that', one => 'un');
    print Dumper( $a, \@foo, \%bar );
    
  3. or download this
    use Data::Dumper::Simple;
    my $a = 'hello';
    my @foo = qw(1 2 3);
    my %bar = (this => 'that', one => 'un');
    print Dumper( $a, @foo, %bar );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-12-08 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (52 votes). Check out past polls.