Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Dumping variables but DRY and simple

by rovf (Priest)
on Mar 27, 2010 at 16:40 UTC ( [id://831367]=note: print w/replies, xml ) Need Help??


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

Anyway I'm not sure if there are sideeffects when trying to access the file...
This would *really* be a hack. For instance, the file might already have been changed after the program has been started (a quite common situation during development). But yes, it is a clever idea.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^6: Dumping variables but DRY and simple
by LanX (Saint) on Mar 27, 2010 at 16:48 UTC
    There are more options:
    Furthermore, when called from within the DB package, caller returns more detailed information: it sets the list variable @DB::args to be the arguments with which the subroutine was invoked.

    Whatever this practically means... anyway I need the dumping for debugging and as rubasov said any keystroke saved is a bless while debugging.

    OR

    I could pass only the variable _names_ and use PadWalker and Stash to get the references/values in caller's context.

    But as stated in the OP I don't wanna reinvent the wheel...

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://831367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found