Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Class::InsideOut doesn't play nicely with DProf

by patspam (Sexton)
on Jul 01, 2008 at 11:52 UTC ( [id://694927]=note: print w/replies, xml ) Need Help??


in reply to Re: Class::InsideOut doesn't play nicely with DProf
in thread Class::InsideOut doesn't play nicely with DProf

Sadly no good - the suggested changes make modules using Class::InsideOut go boom. Sorry about the incorrect line number, the goto I'm really interested in nuking is the one at line 79:
goto &Exporter::import;
Patrick

Replies are listed 'Best First'.
Re^3: Class::InsideOut doesn't play nicely with DProf
by xdg (Monsignor) on Jul 02, 2008 at 22:07 UTC

    I've looked into it. Please try replacing that line with these:

    local $Exporter::ExportLevel = $Exporter::ExportLevel + 1; &Exporter::import;

    I don't really like playing with a global hack like that, but it's limited in scope and Class::InsideOut still passes all its tests.

    Let me know if that works for you with DProf and if it does, I'll release it as Class::InsideOut 1.10

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2025-04-19 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.