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

Re: Pretty Printing with Data::Dumper

by pg (Canon)
on Sep 09, 2005 at 04:13 UTC ( [id://490425]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $Indent = 2 unless defined $Indent;
    
  2. or download this
      if ($Indent > 0) {
        $s->{xpad} = "  ";
        $s->{sep} = "\n";
      }
    
  3. or download this
    $VAR1 = [          'a',          'b',          'c'        ];
    
  4. or download this
    $VAR1 = ['a','b','c'];
    
  5. or download this
    use Data::Dumper;
    
    ...
    my $a = ["a", "b", "c"];
    
    print Dumper($a);
    

Log In?
Username:
Password:

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

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

    No recent polls found