Help for this page

Select Code to Download


  1. or download this
    # Module.pm
    use warnings;
    ...
    my $thingy = 'thangy';
    sub doit { eval 'print "thingy is $thingy\n"'; }
    1;
    
  2. or download this
    use Module;
    Module::doit();  # "thingy is "
    
  3. or download this
    {
       use warnings;
    ...
    }
    
    Module::doit();  # "thingy is "
    
  4. or download this
    {
       use warnings;
    ...
    }
    
    doit();  # "thingy is "
    
  5. or download this
    {
       use warnings;
    ...
    }
    
    doit();  # "thingy is thangy"
    
  6. or download this
    {
       use warnings;
    ...
    }
    
    doit();  # "thingy is thangy"
    
  7. or download this
    {
       use warnings;
    ...
    }
    
    doit();  # "thingy is thangy"
    
  8. or download this
    {
       use warnings;
    ...
    }
    
    doit();  # "thingy is thangy"