Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by tobyink (Canon)
on Jan 30, 2012 at 22:32 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found