Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Testing -- making a new constructor behave differently for one package

by tobyink (Abbot)
on Jan 30, 2012 at 22:32 UTC ( #950843=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Testing -- making a new constructor behave differently for one package
in thread Testing -- making a new constructor behave differently for one package

Why does it assume that? The around new => sub {}; stuff doesn't need to be in the same file where the Foo class is defined. I'd probably put it in the ".t" file.


Comment on Re^3: Testing -- making a new constructor behave differently for one package
Select or Download Code
Replies are listed 'Best First'.
Re^4: Testing -- making a new constructor behave differently for one package
by tj_thompson (Monk) on Jan 31, 2012 at 17:59 UTC
    That actually never occurred to me. Excellent point and it would have been another way to accomplish my objective. Thanks for the insight.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-30 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls