NEVERMIND. I figured it out already. I was going to check the vars pragma manpage *before* I posted this question, but it slipped my mind.
For the record, in case anyone else wants to know:
package Foo; use strict; use vars qw/$BAR/; $BAR = "baz"; package main; print $Foo::BAR;
So, use vars declares 'global' variables (global to the package) that aren't private like my().
In reply to Re: Package variables
by reptile
in thread Package variables
by reptile
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |