Mike808 <[EMAIL PROTECTED]> writes:
> I've found that the GET/HEAD/POST/lwp-request scripts are broken
> on Win32 platforms.
>
> The command:
> perl \perl\bin\GET -uSed http://www.activestate.com
But nobody force you to use "\" as the path separator. Shouldn't
perl /perl/bin/GET -uSed http://www.activestate.com
work just as well (or even better)?
> results in:
> \perl\bin\GET: \PERL\BIN\GET is not an allowed method
>
> This is due to line 178:
>
> $progname =~ s,.*/,,; # use basename only
>
> Assumes a Unix-like system with a filepath separator character of '/'.
> MS Win32 uses '\' for its filepath separator character.
> Mac's are also broken since they use ':' for a filepath separator
> character.
>
> A better solution would be to use the File::Basename module to properly
> parse the basename instead of the current non-portable hack.
Patches welcomed.
Regards,
Gisle