Help for this page

Select Code to Download


  1. or download this
    type ExportScalar.pm
    use strict;
    use warnings;
    ...
       return $DEBUG;
    }
    1;
    
  2. or download this
    type ImportTest.pl
    #!/usr/bin/perl -w
    use strict;
    ...
    use SS::ExportScalar qw( DEBUG );
    my $x = 123;
    print("debug: x is $x\n") if DEBUG;
    
  3. or download this
    perl ImportTest.pl
    Bareword "DEBUG" not allowed while "strict subs" in use at ImportTest.
    +pl line 7.
    Execution of ImportTest.pl aborted due to compilation errors.
    
  4. or download this
    type ImportTest.pl
    #!/usr/bin/perl -w
    use strict qw (vars refs);
    ...
    use SS::ExportScalar qw( DEBUG );
    my $x = 123;
    print("debug: x is $x\n") if DEBUG;
    
  5. or download this
    perl ImportTest.pl
    Bareword found in conditional at ImportTest.pl line 7.
    debug: x is 123