- or download this
use Test::Without::Modules qw( HTML::Template );
use Test::Without::Modules qr/^POE::/;
- or download this
BEGIN { @SAVED_INC = @INC; };
sub import {
...
# Return a filehandle to it
};
};
- or download this
BEGIN { @SAVED_INC = @INC; };
sub import {
...
# return undef if it's a blocked module
};
};
- or download this
sub import {
$INC{$module} = 1;
...
die 'ugh';
};
};
- or download this
eval { require Optional::Module };
if ($@) {
# module is not available
};
- or download this
sub import {
unshift @INC, sub {
# return dummy module filehandle if it's a blocked module
};
};
- or download this
use vars qw( %forbidden );
sub import {
...
};
};
};
- or download this
package Test::Without::Module;
use strict;
...
L<Acme::Intraweb>, L<PAR>, L<perlfunc>
=cut
- 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