Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[stonecolddevin]: https://open. spotify.com/track/ 0UVM9trirBK5s1xBwL oVhZ rather
[Corion]: Sadly I must go to bed now :-| See y'all!
[erix]: I really loved/love this "Recorded Live" record, 1973 (yes, I'm that old)
[stonecolddevin]: goodnight Corion
[erix]: cya Corion :)
[stevieb]: Joan Jett, Hendrix, Neil Young, Dave Keuning (The Killers)... I have my mind elsewhere so I'm limited in my capacity to think about this righ tnow ;)
[erix]: another blues with Big Red :)
[stonecolddevin]: I will say John Mayer is an excellent guitarist, I don't like his music but he's pretty damn good
[erix]: scd: maybe you like John Mayall better :)
[erix]: (mayall = british blues)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-06-22 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.