in reply to Re: Re: Side effects of use-ing base (vs our @ISA)
in thread Side effects of use-ing base (vs our @ISA)

Your Totally/Fake.pm doesn't have a "use Exporter;". How adding 'use lib' makes perl compile my_script.pl seems like a bug to me.

Doesn't this mean -MFoo == use Foo; but -mFoo != use Foo;? In that -M will call the import routine for the default set of symbols, but -m will not call it.

Yes it does. I completely misread.

Abigail

  • Comment on Re: Side effects of use-ing base (vs our @ISA)

Replies are listed 'Best First'.
Re: Side effects of use-ing base (vs our @ISA)
by Abigail-II (Bishop) on Sep 10, 2003 at 11:47 UTC
    Ah, I got it.

    "use lib" does a "use Config", which does a "use Exporter". So, if you have a "use lib", Exporter is loaded, making your Totally::Fake.pm work, despite the absense of "use Exporter" in that file.

    Abigail