<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2>For a while now I've been using Data::Dump as a replacement 
to Data::Dumper.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2>The output is better, it adapts the output style depending 
on the amount of data.&nbsp; For example small arrays are printed horizontally, 
long arrays vertically.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2>It also has a function dd, which displays the provided 
variable.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2>So&nbsp;your full example becomes: dd blah;&nbsp; Thats ten 
less key strokes.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=947261101-28072010><FONT face=Arial 
color=#0000ff size=2>David</FONT></SPAN>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> 
melbourne-pm-bounces+david.tulloh=airservicesaustralia.com@pm.org 
[mailto:melbourne-pm-bounces+david.tulloh=airservicesaustralia.com@pm.org] <B>On 
Behalf Of </B>Mathew Robertson<BR><B>Sent:</B> 28 July 2010 10:39 
AM<BR><B>To:</B> Melbourne Perl Mongers<BR><B>Subject:</B> [Melbourne-pm] 
Data::Dumper enhancement<BR></FONT><BR></DIV>
<DIV></DIV>Hi PM,
<DIV><BR></DIV>
<DIV>For years I have used Data::Dumper to help me debug my code, usually with 
the syntax:</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp;print Dumper(blah);</DIV>
<DIV><BR></DIV>
<DIV>It occurred to me that I could save some keystrokes... so went looking at 
Dumper.pm and found that 'wantarray' is being used to determine the calling 
context for list vs. scalar. But it isn't being used to detect void 
context...</DIV>
<DIV><BR></DIV>
<DIV>Would saving 6 keystrokes would be a useful enhancement?</DIV>
<DIV><BR></DIV>
<DIV>cheers,</DIV>
<DIV>Mathew Robertson</DIV></BODY></HTML>