Re: basic URI::URL question

Tkil (tkil@scrye.com)
02 Feb 1998 12:30:32 -0700


>>>>> "Stuart" == Stuart Thorn <thorn@spinnaker.fr> writes:

Stuart> Could someone point me in the right direction with this code below.

uh... do you mean this?

   my $path_to_local_file = "/u/tkil/.emacs";
   my $file_url           = url("file:$path_to_local_file");

example:

   use URI::URL;
   my $u = url("file:/u/tkil/.emacs"); 
   print "scheme=", $u->scheme(), ", path=", $u->path(), "\n";

Stuart> Thanks for your help

no problem.

t.

p.s. i have a haunting feeling that i have the precise syntax of the
     file: URLs incorrect; that is, i don't remember whether you use a 
     single slash, or multiple slashes before the path.  oh well.
-- 
Tkil * <URL: http://www.scrye.com/~tkil> * hopelessly hopeless romantic.
  "So amplify this little one 	|   She hears as much as she can see
   She's a volume freak       	|   And what she sees, she can't believe."
        -- Catherine Wheel, _Happy Days_, "Judy Staring At The Sun"