You found an example, but you didn't copy/paste
The docs for vars also has example
Did you notice the difference? qw are quotes
use vars qw/ $foo $bar /; is the same as use vars '$foo', '$bar';
see perlop#Quote and Quote like Operators
In reply to Re: use vars - how to use this (copy paste)
by Anonymous Monk
in thread use vars - how to use this
by JockoHelios
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |