On Wed, 27 Jun 2001, Daryl Hoyt <[EMAIL PROTECTED]> wrote,
> Hi,
> I am writing a script to be used on Windows and many different
> flavors of Unix. I am looking for a good way to convert Unix paths
> to Windows. Any Ideas?
use File::Spec;
I know your question is about "conver
On Wed, Jun 27, 2001 at 12:08:26PM -0700, Chuck Ivy wrote:
> if($0=~m#^(.*)\\#){ $cgidir = "$1"; } # win/dos
> elsif ($0=~m#^(.*)/# ){ $cgidir = "$1"; } # Unix
> else {`pwd` =~ /(.*)/; $cgidir = "$1"; } # Unix
This is just a less portable implementation of what FindBin.p
On Wednesday, June 27, 2001, at 08:59 AM, [EMAIL PROTECTED]
wrote:
Hi,
I am writing a script to be used on Windows and many different
flavors
of Unix. I am looking for a good way to convert Unix paths to Windows.
Any
Ideas?
Not exactly an answer to your question, but perhaps someth
TECTED]]
> Sent: Wednesday, June 27, 2001 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Converting Unix paths to windows
>
> At 10:22 27.06.2001 -0500, Daryl Hoyt wrote:
> >Hi,
> > I am writing a script to be used on Windows and many different
> flavors
> &
At 10:22 27.06.2001 -0500, Daryl Hoyt wrote:
>Hi,
> I am writing a script to be used on Windows and many different flavors
>of Unix. I am looking for a good way to convert Unix paths to Windows. Any
>Ideas?
What do you mean exactly. If you just mean converting "\" to "/" and
getting