You are looking at a very old, but free version of the course. If you are interesed the most recent version, check it out on the Perl Maven site.

12.5. Fetching a not-existing static page

Example 12-2. examples/www/static_bad.t

#!/usr/bin/perl
use strict;
use warnings;

use Test::More tests => 1;
use LWP::Simple;

my $home = get 'http://test_server:8080/xx';
ok $home, 'There is a response';

Fetch a page and check if there is response.

$ perl static_bad.t 
not ok 1 - There is a response
#     Failed test (static_bad.t at line 10)
1..1
# Looks like you failed 1 tests of 1.

If you are interested in on-site trainings by the author, please contact me directly.