develooper Front page | perl.perl5.porters | Postings from March 2000

Re: What's left to do? [LONG]

From:
scozens
Date:
March 22, 2000 19:45
Subject:
Re: What's left to do? [LONG]
Message ID:
492568AB.0013CCC9.00@pwj-gw-n001.pwj.co.jp




> >+@EXPORT_OK = qw($name $dir $fullname);
> Nope.  Please read my other message detailing why this fails.

(In which you said)

> 402:        local ($dir, $name, $prune, *DIR);
> If you run local() on something that's only partially imported

But we're not doing that any more. I killed the localisation
of the variables we (potentially) import, for this very reason:

> -    local ($dir, $name, $prune, *DIR);
> +    local ($_dir, $prune, *DIR);

Sure, you still have to import the default functions manually
when you import one of these variables, but we can either
   i) provide our own import() which *always* exports
&find and &finddepth
or ii) assume that people who are going to specify an import
list know know it works.

Simon







nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About