Eva Myers wrote:
Hello,
I am trying to use the Perl script w3mir (from
http://www.langfeldt.net/w3mir/) but although it works fine on an SL44
system, it has problems on the SL50 64-bit system where I want to use
it.  When I investigated this I discovered a difference in Perl's
behaviour on SL44 and SL50.  The following test script:

#!/usr/bin/perl
use URI::URL;
$name = (url "file:index.html")->unix_path;
print "$name\n";

gives the output "index.html" on SL44, which is the behaviour w3mir is
expecting, but on SL50 it gives "/index.html" instead.

What is going on here, and is there any way I can get Perl in SL50 to
behave as it used to in SL44?

I'm thinking the url should be "file:///index.html."
Yep, three slashes. I presume there's a space there for a meaningless hostname.



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

Reply via email to