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

Re^3: $object->UnrelatedPackage::some_subroutine()

by stvn (Monsignor)
on Feb 19, 2005 at 02:43 UTC ( [id://432617]=note: print w/replies, xml ) Need Help??


in reply to Re^2: $object->UnrelatedPackage::some_subroutine()
in thread $object->UnrelatedPackage::some_subroutine()

I've used this when dealing with code that used the above trick to get a custom result without having to go and create a special method for it.

This is fine for a quick and dirty solution, but I would be wary of using it for anything else.

Perl's object system is somewhat broken as it is, so abusing it like this is just (IMO of course) a bad idea.

-stvn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-19 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found