Hi,

I saw some code like this today:


!/bin/perl -w

package My::Package;

use strict;
...
%My::Package::somehash = ( keyone => 'val', keytwo => 'val2');



The My::Package::somehash isn't declared as with `my` yet the package
loads without error or warnings. Is this because the hash is given as
a fully qualified name or is there some other magic going on?

Thanx,
Dp.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to