Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    use ttt qw(get_key);
    my ($a,$b,$c) = get_key();
    is($a,1);
    
  2. or download this
    package ttt;
    use strict;
    ...
    }
    
    1;
    
  3. or download this
    package ttt;
    use strict;
    ...
    }
    
    1;
    
  4. or download this
    package ttt;
    use strict;
    ...
    }
    
    1;
    
  5. or download this
    Can't use an undefined value as an ARRAY reference at ttt.pm line 21.
    # Looks like your test died before it could output anything.
    
  6. or download this
    our %config;
    BEGIN {
        %config = ( 'a' => 'test' );
        $config{'key'} = [1,2,3];
    }
    
  7. or download this
    our %config;
    BEGIN {
        $config{'key'} = [1,2,3];
        %config = ( 'a' => 'test' );
    }
    
  8. or download this
    Can't use an undefined value as an ARRAY reference at ttt.pm line 21.