Re: cygwin -> mswindows pathname conversion under cygwin perl?

Rick Rankin <[email protected]>
Newsgroups gmane.emacs.xemacs.windows
Message-ID <[email protected]>
The predefined variable $^O (that's a capital O) will be 'cygwin' for a
cygwin-built perl or 'MSWin32' for ActiveState perl. If you include the line

use English; 

in your script, then you can use the variable $OSNAME for the same purpose.

--Rick
--- Ben Wing <[email protected]> wrote:
> thanks ...  one more question, how do you determine if you're running cygwin
> perl or not?
> 
> ----- Original Message -----
> From: "Rick Rankin" <[email protected]>
> To: "Ben Wing" <[email protected]>; "XEmacs NT List" <[email protected]>
> Cc: "Andy Piper" <[email protected]>
> Sent: Friday, February 28, 2003 7:22 PM
> Subject: Re: cygwin -> mswindows pathname conversion under cygwin perl?
> 
> 
> > Ben,
> >
> > Just use
> >
> > chomp($winPath = `cygpath -w $unixPath`);
> >
> > 'cygpath --help' will give you all the options.
> >
> > --Rick
> > --- Ben Wing <[email protected]> wrote:
> > > andy [or someone else], is there a way to convert pathnames to mswindows
> > > format
> > > in a cygwin perl script?
> > >
> > > thanks.
> > >
> > > ben
> > >
> > >
> >
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.