http://www.perlmonks.org?node_id=403922


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.)