in reply to Re: EXPORT_OKed function refusing to import
in thread EXPORT_OKed function refusing to import

Hmmm... Very interesting. I was under the impression that all the BEGIN blocks would run first, unconditionally, so it wouldn't matter where they were placed in the source file, but moving them to before my use lines seems to have cleared this right up. Thanks!

Replies are listed 'Best First'.
Re^3: EXPORT_OKed function refusing to import
by ikegami (Patriarch) on Feb 06, 2007 at 20:43 UTC
    use Foo qw( bar );

    is a shortcut for

    BEGIN { require Foo; Foo->import(qw( bar )); }