vars

vars

NAME

vars - Perl pragma to predeclare global variable names

SYNOPSIS

use vars qw($frob @mung %seen);

DESCRIPTION

NOTE: For use with variables in the current package for a single scope, the functionality provided by this pragma has been superseded by our declarations, available in Perl v5.6.0 or later, and use of this pragma is discouraged. See our.

This will predeclare all the variables whose names are in the list, allowing you to use them under "use strict", and disabling any typo warnings.

Unlike pragmas that affect the 登录查看完整内容