On Mon, Jan 31, 2011 at 3:27 AM, Aristotle Pagaltzis <pagaltzis@gmx.de>wrote: > > <<use vars>> should be used instead of <<our>> for vars that > > can be accessed from outside the module to prevent "used only > > once" warnings. Switching <<$SIGACTION_FLAGS>> to <<our>> is > > a mistake. It causes proper usage of that variable to warn. > hum, I seem to be mistaken. $ md Mod $ cat > Mod/Vars.pm package Mod::Vars; use vars qw( $CONFIG ); sub f { print "$CONFIG\n"; } 1; $ cat > Mod/Our.pm package Mod::Our; our $CONFIG; sub f { print "$CONFIG\n"; } 1; $ perl -we'use Mod::Vars; local $Mod::Vars::CONFIG = 1; Mod::Vars::f();' 1 $ perl -we'use Mod::Our; local $Mod::Our::CONFIG = 1; Mod::Our::f();' So I hereby state that I don’t know what you’re talking about. > Apparently, that makes two of us! I retract what I said. It doesn't seem that whatever I'm thinking about is relevant here. - EricThread Previous | Thread Next