Help for this page

Select Code to Download


  1. or download this
    {
        package Naughty;
        use base 'Exporter';
    ...
    else {
      print "home free";
    }
    
  2. or download this
    package strict::can;
    
    use warnings;
    ...
    }
    
    1;
    
  3. or download this
    #!perl
    
    #use Test::More tests => 1;
    ...
    
    ok !Unsuspecting::Subclass->can('_private'),
      'strict::can should ignore functions which begin with an underscore'
    +;
    
  4. or download this
    sub can {
        my ( $proto, $method ) = @_;
    
    ...
        }   
        return; 
    }