Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: feedback on subroutine as both function and method in one

by bikeNomad (Priest)
on Jul 12, 2001 at 22:58 UTC ( [id://96145]=note: print w/replies, xml ) Need Help??


in reply to Re: feedback on subroutine as both function and method in one
in thread feedback on subroutine as both function and method in one

It's interesting that it always does the unshift, even if it's not called in array context. I could see that being a problem when subclassing CGI:

my $cgi = $self_or_default(@_); $cgi->param(@_); # oops, now I have an extra CGI as first arg.

Log In?
Username:
Password:

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

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

    No recent polls found