Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How do I use @ISA and use strict at the same time?

by Anonymous Monk
on Jun 05, 2001 at 18:05 UTC ( [id://85815]=note: print w/replies, xml ) Need Help??


in reply to How do I use @ISA and use strict at the same time?

I think the best is
package Question; @Question::ISA=("Another");

Replies are listed 'Best First'.
Re: Answer: How do I use @ISA and use strict at the same time?
by Anonymous Monk on Jun 05, 2001 at 19:10 UTC
    Another way is to use vars @ISA, this makes the package a little more portable inside of a source tree.
    package Question;
    
    use strict;
    use vars qw( @ISA );
    
    @ISA = ( "Another" );

Log In?
Username:
Password:

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

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

    No recent polls found