- or download this
use strict;
if (@_)
...
my $var = "ok";
}
print "$var\n";
- or download this
Global symbol "$var" requires explicit package name at test2.pl line 6
+.
Execution of test2.pl aborted due to compilation errors.
- or download this
use strict;
my $var = "ok" if (@_);
print "$var\n";