basic URI::URL question

Stuart Thorn (thorn@spinnaker.fr)
Mon, 2 Feb 1998 12:36:51 +0100


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