Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: URI Inheritence

by steves (Curate)
on Nov 12, 2004 at 22:48 UTC ( #407553=note: print w/replies, xml ) Need Help??


in reply to URI Inheritence

You should be able to use AUTOLOAD to implement method pass-through. I've done this in similar contexts. You basically build the AUTOLOAD method in your new class to say, "If the URI::URL object I contain has the method being called, then call it. Otherwise raise an exception."

For the scalar context issue, I believe that URI::URL overloads the "stringify" operator using operator overloading. Your new class could do the same thing if that's the case.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://407553]
help
Chatterbox?
[LanX]: you don't see the whole picture
[LanX]: But reu germans have no humor, better to refrain from this site till the troll is gone...
[LanX]: true
[shmem]: I disagree
[LanX]: sure you are German

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-04-27 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (512 votes). Check out past polls.