<div>Mathew,</div><div>I notice that Data::Dumper already has a Dumpp function that prints to STDOUT:</div><div><br></div><div><div> use Data::Dumper;</div><div> Data::Dumper::Dumpp([{apples => 10, oranges => 20}]);</div>
</div><div><br></div><div>Would it suffice to make this exportable?</div>- David<div><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 10:39 AM, Mathew Robertson <span dir="ltr"><<a href="mailto:mathew.blair.robertson@gmail.com">mathew.blair.robertson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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> 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>
<br>_______________________________________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br></blockquote></div><br></div>