Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^4: Dumping variables but DRY and simple

by LanX (Chancellor)
on Mar 27, 2010 at 15:05 UTC ( #831353=note: print w/replies, xml ) Need Help??

in reply to Re^3: Dumping variables but DRY and simple
in thread Dumping variables but DRY and simple

# named printing is still not DRY, but much better than: # print Data::Dumper->Dump( [$ref], ['*ref'] ); print '$ref = ', pp($ref), "\n";

yeah but thats core...

use Data::Dumper qw/Dumper/; print '$ref = ', Dumper($ref), "\n";

So really a big gain if it's not DRY?

Cheers Rolf

Replies are listed 'Best First'.
Re^5: Dumping variables but DRY and simple
by rubasov (Friar) on Mar 27, 2010 at 15:14 UTC
    When used during development (when Data::Dump should be installed only on my machine) I think every saved keystroke is a big gain. Although when I want to distribute the resulting code (eg. using for a deep copy, not just debug printing) then it is not.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831353]
[1nickt]: stevieb it's just a simple web page with a POST form. You can set the attribute so when the user's browser opens a file manager to select a file to upload, it will only show those o f the type you want to get.
[1nickt]: Question for my learned friends: is there a word meaning "CSV-like" i.e. I want to say that I accept CSV files, but the separator doesn;t have to be a comma. Or is that implicit these days?
[chacham]: dsv
[chacham]: dsv

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-07-22 18:53 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (340 votes). Check out past polls.