On 4/20/05, Dave Mitchell <[EMAIL PROTECTED]> wrote:
> > I get the following output:
> > [EMAIL PROTECTED] Trec]$ perl -e "use blah;"
> > Unknown error
> > Compilation failed in require at -e line 1.
> > BEGIN failed--compilation aborted at -e line 1.
> 
> This has been fixed in the development version of Perl; you now get:
> 
> Bareword "MyBase" not allowed while "strict subs" in use at lib/blah.pm line 
> 10.Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
> 
> ie you need
> 
>    use base 'MyBase';
> 
> rather than
> 
>    use base MyBase;

On perlmonks its not uncommon to hear people simply state "DONT use
base" as it doesnt work in odd ways in enough situations that you cant
trust it to work at all.

yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to