Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Revisiting strict and @ISA

by etcshadow (Priest)
on Oct 29, 2004 at 21:39 UTC ( #403922=note: print w/replies, xml ) Need Help??


in reply to Revisiting strict and @ISA

Something that basically no-one does but practically everyone *should* do is wrap their @ISA assignments in BEGIN blocks.

Change that to:

package Test1; use vars qw(@ISA); BEGIN { @ISA = qw(Test); }
And you should be just fine.
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re^2: Revisiting strict and @ISA
by diotalevi (Canon) on Oct 29, 2004 at 21:47 UTC
    This is also written as use base 'Parent::Class'.
Re^2: Revisiting strict and @ISA
by tilly (Archbishop) on Oct 30, 2004 at 17:15 UTC
    Something that basically no-one does but practically everyone *should* do is wrap their @ISA assignments in BEGIN blocks.

    I don't think that that's a valuable practice. If you want you can try to convince me. Before doing so I'd suggest reading the thread at (tye)Re: Supersplit for a fuller understanding of my views about BEGIN. (And to see that not everyone necessarily agrees with me on this.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2019-09-18 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (223 votes). Check out past polls.

    Notices?