On Thu, Aug 10, 2000 at 10:43:02AM -0400, Bennett Todd wrote:
> If the only real problem that can be found with making module use
> package-local is in these few option-flag type variables, perhaps
> they could be handled differently. E.g. suppose normal package
> variables end up being local to the package that "use"-es the
> package, and when a package actually wants to make a genuine global
> for all users of the package, it explicitly tucks it into a variable
> whose name starts with main::. E.g. let Net/FTP.pm post its debug
> flag into $main::Net::FTP::Debug, and the list of exception classes
> requested of Fatal.pm could be posted into @main::Fatal.

And the difference is ?

$ perl -e 'warn \$main::fred::x," ",\$fred::x'
SCALAR(0x80dc254) SCALAR(0x80dc254) at -e line 1.

Graham.

Reply via email to