Help for this page

Select Code to Download


  1. or download this
    package Mylib;
    use strict;
    use warnings;
    our $variable1 = "string1";
    
  2. or download this
    use lib 'F:/scripts/perl/';
    use junk;
    use strict;
    use warnings;
    print("\$variable1 = $variable1\n");
    
  3. 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.