[Melbourne-pm] Data::Dumper enhancement

Toby Corkindale toby.corkindale at strategicdata.com.au
Tue Jul 27 18:14:40 PDT 2010

On 28/07/10 10:39, Mathew Robertson 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?

I'm not really a fan of that sort of behaviour.

Functions should be consistent in what they do, not have side-effects 
(like i/o) and should not import all sorts of functionality.


More information about the Melbourne-pm mailing list