I would like to have warnings about package variables, used outside a
package, that haven't been declared inside the package.

Given:

#== file: F.pm
use strict;
use warnings;

package F;
our $X;
1;
#EOF

#== file: main.pl
use strict;
use warnings;

use F;

$F::Y = 1;
print "$F::Y\n";
#EOF

I would like to be warned that $F::Y hasn't been declared in F.pm, but
I'm not sure that's possible.  (Note that the single use of $X isn't
warned about, either.)

Any thoughts?  

Will perl 5.10 or 6 help the situation?

Thanks.

-Tom
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to