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

Re: Pretty Printing with Data::Dumper

by pg (Canon)
on Sep 09, 2005 at 04:13 UTC ( #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
Node Status?
node history
Node Type: note [id://490425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2021-02-28 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?