- or download this
package Mylib;
use strict;
use warnings;
our $variable1 = "string1";
- or download this
use lib 'F:/scripts/perl/';
use junk;
use strict;
use warnings;
print("\$variable1 = $variable1\n");
- or download this
F:\scripts\perl>perl -c junk.pl
Global symbol "$variable1" requires explicit package name at junk.pl l
+ine 10.
junk.pl had compilation errors.