unless (defined ($page = get $url)) { ... }
$dom = $parser->parse_html_string($page);
# find the grade if ($contents{'Grade'} =~ m{ \A Beginner }xms) { $data->{$area_name}{$track_num}{grade} = 'Beginner'; }