Help for this page

Select Code to Download


  1. or download this
    C:\Steve\Dev\PerlMonks\P-2013-07-26@0942-Strict>perl testStrict.pl
    Global symbol "%hash" requires explicit package name at testStrict.pl 
    +line 3.
    ...
    Global symbol "%hash" requires explicit package name at testStrict.pl 
    +line 21.
    Global symbol "%hash" requires explicit package name at testStrict.pl 
    +line 23.
    Execution of testStrict.pl aborted due to compilation errors.
    
  2. or download this
    %hash = ( ' Key1', ' Value1');
    
  3. or download this
    %hash = ( ' Key1', ' Value1');
    my %hash = ( ' Key1', ' Value1');
    
  4. or download this
    C:\Steve\Dev\PerlMonks\P-2013-07-26@0942-Strict>perl testStrict2.pl
    Global symbol "$kv" requires explicit package name at testStrict2.pl l
    +ine 14.
    ...
    Global symbol "$kv" requires explicit package name at testStrict2.pl l
    +ine 17.
    Global symbol "$vv" requires explicit package name at testStrict2.pl l
    +ine 17.
    Execution of testStrict2.pl aborted due to compilation errors.