Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: "use base" or @ISA

by davido (Cardinal)
on Aug 17, 2004 at 15:06 UTC ( [id://383698]=note: print w/replies, xml ) Need Help??


in reply to "use base" or @ISA

Not exactly the same thing. @ISA = qw/Exporter/; doesn't perform a 'require Exporter;'.

From the base POD: use base; "is rougly similar to":

BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); }

I like use base; also because it runs under strictures without explicitly calling "use vars qw/@ISA/;", or declaring "our @ISA...". ...just a minor improvement, IMHO, but I prefer to use it.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-18 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found