Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Any module for saving data as perl data?

by Ovid (Cardinal)
on Apr 29, 2016 at 10:17 UTC ( #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
Node Status?
node history
Node Type: note [id://1161867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-11-25 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?