Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: intercept nonexistent methods call

by Bor (Sexton)
on Aug 04, 2011 at 11:24 UTC ( #918504=note: print w/ replies, xml ) Need Help??

in reply to Re^2: intercept nonexistent methods call
in thread intercept nonexistent methods call

This is not working as I want :(
If I comment "parent Module;" in Module::Mock.
Then code

local *Module::new = sub { Module::Mock->new(); };
do not gives any effect and in other modules Module->new() calls.

Comment on Re^3: intercept nonexistent methods call
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2015-11-26 03:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls