Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
XP is just a number
 
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
Re^4: Testing -- making a new constructor behave differently for one package
by tj_thompson (Scribe) 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 surveying the Monastery: (6)
As of 2014-04-18 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls