qw/STRING/ is actually the same as split ' ', 'STRING'.#!perl -w use strict; use vars qw(@array); # same as: use vars '@array'; BEGIN { # the use vars below happens at compile time, # so @array must be set at compile time @array = ('$scalar', '%hash'); } use vars (@array); # $scalar and %hash are now declared $scalar = 7; %hash = (key => 'value');
In reply to Re: why qw() rather than ()
by chipmunk
in thread why qw() rather than ()
by arhuman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |