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

Re: Problem with inheritance

by Sidhekin (Priest)
on Oct 24, 2007 at 20:52 UTC ( #647015=note: print w/ replies, xml ) Need Help??


in reply to Problem with inheritance

LWP::Simple is not an object oriented module. It's not a class, so conceptually impossible to subclass. :)

You may want to subclass LWP::UserAgent instead? LWP::Simple is implemented using an object of this class.

... and if you want, you may even trick LWP::Simple into using your object instead ... just assign a properly instanciated and initialized object to $LWP::Simple::ua before requiring LWP::Simple! (Disclaimer: Probably evil.)

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!


Comment on Re: Problem with inheritance
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-29 08:02 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 (261 votes), past polls