in reply to There Are No Perl Scripts

Minor style issue: if you put run_script into @EXPORT anyway, you don't have to mention it on the use line, it'll be exported by default. Some people think modules exporting stuff by default is questionable style (namespace pollution), so they would call run_script fully qualified: Mayhem::Script::foobar::run_script();

Replies are listed 'Best First'.
Re^2: There Are No Perl Scripts
by Tuppence (Pilgrim) on Nov 19, 2004 at 21:20 UTC

    Yes, you are absolutely correct. Usually I just use EXPORT_OK as one of my guiding lights is that package namespaces should be as clean as possible (and no cleaner). However, even when I do use EXPORT, I still make an effort to explicitly mention the function on my use line - not because I have to, but because it cuts down on garbage in my namespace (not that anyone besides me cares) as well as saving me the confusion of where foo() comes from later on when I'm reading my code from six months ago that was apparently written by a demented baboon.