Help for this page

Select Code to Download


  1. or download this
    use Test::Without::Modules qw( HTML::Template );
    use Test::Without::Modules qr/^POE::/;
    
  2. or download this
    BEGIN { @SAVED_INC = @INC; };
    sub import {
    ...
        # Return a filehandle to it
      };
    };
    
  3. or download this
    BEGIN { @SAVED_INC = @INC; };
    sub import {
    ...
        # return undef if it's a blocked module
      };
    };
    
  4. or download this
    sub import {
      $INC{$module} = 1;
    ...
        die 'ugh';
      };
    };
    
  5. or download this
      eval { require Optional::Module };
      if ($@) {
        # module is not available
      };
    
  6. or download this
    sub import {
      unshift @INC, sub {
        # return dummy module filehandle if it's a blocked module
      };
    };
    
  7. or download this
    use vars qw( %forbidden );
    sub import {
    ...
        };
      };
    };
    
  8. or download this
    package Test::Without::Module;
    use strict;
    ...
    L<Acme::Intraweb>, L<PAR>, L<perlfunc>
    
    =cut
    
  9. or download this
    perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ;    # The  
    $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider
    ($c = $d->accept())->get_request(); $c->send_response( new   #in the
    HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' #  web