Connie Chan wrote at Tue, 27 Aug 2002 00:40:26 +0200:

> package A;
> use strict;
> require Exporter;
> our @ISA = qw (Exporter); # What this actually for ?!
> our @EXPORT = qw (%hash);
> our %hash  ;
> 
> ...
> My question is, will perl re- assign the hash whenever
> a 'use package A' declared ? or when Perl found the package
> had loaded once, it won't load again ?

No. All Perl does is to export %hash in your namespace.
That means, without the Exporter and the @EXPORT array,
you would have access to the variable with
%A::hash.
Now the *same* variable also exists in your namespace,
so you can access it with %hash.


Greetings,
Janek


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to