vars
Pragma that, given a list of variable names, predeclares
all variables in the list, making sure they are available to routines
with delayed loading (e.g., routines loaded by the AutoLoader or
SelfLoader). This allows you to use the variables under use strict
. The vars
pragma also disables warnings about
typographical errors.
use vars qw($var1 @var2 %var3);
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.