Could someone point me in the right direction with this code below.
use URI::URL;
my $localfile = "/u/web/login/bal/intro.html";
my $url = &tourl( $localfile );
my $htmltoken = q(<a href=") . $url->to_string . q(">Url</a>);
sub tourl {
my( $lf ) = @_;
#
# How can i simply create a URI::URI from a local filename
#
}
Thanks for your help