Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Data::Dumper question

by haoess (Curate)
on Apr 01, 2009 at 09:54 UTC ( #754662=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper question

RTFM?
$OBJ->Values([ARRAYREF])

Queries or replaces the internal array of values that will be dumped. When called without arguments, returns the values. Otherwise, returns the object itself.

Update (example code):

print $d->Values([$this])->Dump(); print $d->Values([$that])->Dump(); print $d->Values([$otherthing])->Dump();

-- Frank

Replies are listed 'Best First'.
Re^2: Data::Dumper question
by perl5ever (Pilgrim) on Apr 01, 2009 at 13:41 UTC
    I guess I did overlook that. Thanks! For convenience it would be nice, though, if that capability was integrated into the Dump method.
Re^2: Data::Dumper question
by perl5ever (Pilgrim) on Apr 01, 2009 at 13:39 UTC
    I guess I did overlook that. Thanks!
Re^2: Data::Dumper question
by perl5ever (Pilgrim) on Apr 01, 2009 at 17:33 UTC
    Here's another problem -- when you set the thing to be dumped via Values(), the Dumper object retains a reference to the thing to be dumped.

    It would be a lot nicer if it would just hold on to the dumpee only for the duration of the Dump call.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://754662]
help
Chatterbox?
[Corion]: LanX: Ah, yeah - Frankfurt is in the quake region, but at the very border. I think I've never noticed a quake in Frankfurt myself
[marto]: good morning all
[Corion]: On another topic, in the process of Rubber Duck SoPWing, I wrote a post about the best API for generating HTTP requests (not sending them) and while writing it and fleshing out my sample implementation, I came up with some improvements to my ...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-01-18 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.