Help for this page

Select Code to Download


  1. or download this
    use My::Tools;
    
    # turns strict on
    # turns warnings on
    # makes all my usual imports available
    
  2. or download this
    package My::Tools;
    
    ...
    );
    
    1; # return true
    
  3. or download this
    use My::Tools;
    
    $var = 1;   # causes a compile error because we're using strict
    
  4. or download this
    # simple example of strict contagion
    sub import {
        require strict;
        strict->import;
    }