>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:

  SHC> 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.

  SHC> I have a script called template.pl:

  SHC> use Data::Dumper;

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

but few people use templates like that (emacs supports it as do other
editors). my point is that dumper is overkill for simple dumps of
values. you don't use it to print scalars? arrays aren't much more and
map works well. and as i said, you can control the output much better
with map than dumper. this is not against dumper which i use all the
time, just to point out to others that using it for simple prints is not
always needed.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
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