On 10-05-20 02:07 PM, Uri Guttman wrote:
not a major point, but why do you use dumper just to print a list of
tokens? i use dumper for deeper stuff where i can't just print the data
easily without some code. even single level hashes i will print directly
as i can format it my way and not dumper's.

I have a script called template.pl:
#!/usr/bin/perl

use strict;
use warnings;

use Data::Dumper;

# Make Data::Dumper pretty
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent   = 1;

# Set maximum depth for Data::Dumper, zero means unlimited
local $Data::Dumper::Maxdepth = 0;



Whenever I need to do a quick script, I copy it and modify it. Dumper is already there.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to