[Melbourne-pm] Data::Dumper enhancement

David Warring david.warring at gmail.com
Tue Jul 27 18:37:29 PDT 2010


Mathew,
I notice that Data::Dumper already has a Dumpp function that prints to
STDOUT:

    use Data::Dumper;
    Data::Dumper::Dumpp([{apples => 10, oranges => 20}]);

Would it suffice to make this exportable?
- David

On Wed, Jul 28, 2010 at 10:39 AM, Mathew Robertson <
mathew.blair.robertson at gmail.com> wrote:

> Hi PM,
>
> For years I have used Data::Dumper to help me debug my code, usually with
> the syntax:
>
>   print Dumper(blah);
>
> 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...
>
> Would saving 6 keystrokes would be a useful enhancement?
>
> cheers,
> Mathew Robertson
>
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20100728/3a3884f6/attachment.html>


More information about the Melbourne-pm mailing list