####
#!/usr/bin/perl -w
use strict;
use Symbol qw( delete_package );
use Test::More tests => 6;
BEGIN { use_ok( "Test::Without::Module", qw( Digest::MD5 )); };
{
use Test::Without::Module qw( Digest::MD5 );
eval { require Digest::MD5 };
ok( $@ ne '', "Loading raised error");
like( $@, qr!^Can't locate Digest/MD5.pm in \@INC!, "Hid module");
is_deeply( [sort keys %{Test::Without::Module::get_forbidden_list()}],[ qw[ Digest::MD5 ]],"Module list" );
delete_package( 'Digest::MD5' );
};
####
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