Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Mixing @EXPORT and use base

by Joost (Canon)
on Jul 07, 2004 at 18:42 UTC ( [id://372500]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mixing @EXPORT and use base
in thread Mixing @EXPORT and use base

Well... you don't have to make it smarter, you can rewrite it as
sub external { shift; # rest of code }
It just requires that it should always be called as a method.

I do this all the time, but I guess it's a matter of taste.

edit: removed class from "always be called as a method"

Log In?
Username:
Password:

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

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

    No recent polls found