Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Creating modules with OO and functional interfaces.

by ariels (Curate)
on May 14, 2002 at 11:42 UTC ( [id://166419]=note: print w/replies, xml ) Need Help??


in reply to Creating modules with OO and functional interfaces.

CGI has this feature; it seems to live in the function ``<samp>self_or_default</samp>'' and maybe also ``<samp>self_or_CGI</samp>'' (both in the main <samp>CGI.pm</samp> file). You might examine its implementation -- it checks that the first argument is a reference, or that it ``isa-CGI'' (the first test is probably just optimizing for the common case).

  • Comment on Re: Creating modules with OO and functional interfaces.

Log In?
Username:
Password:

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

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

    No recent polls found