http://www.perlmonks.org?node_id=358367

use URI::file; my $uri = URI::file->new_abs( "/path/to/file" )->as_string; my $response = $mech->get( $uri );