Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by Anonymous Monk
on Jun 05, 2001 at 18:05 UTC ( #85815=categorized answer: print w/replies, xml ) Need Help??

Q&A > object-oriented programming > How do I use @ISA and use strict at the same time? - Answer contributed by Anonymous Monk

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
Chatterbox?
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2016-12-04 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (65 votes). Check out past polls.