RE: cygwin -> mswindows pathname conversion under cygwin perl?
"Andy Piper" <[email protected]>
| Newsgroups | gmane.emacs.xemacs.windows |
|---|---|
| Message-ID | <000501c2dfb9$db599460$987ba8c0@shalom> |
I think that's another one for Stephen's list isn't it? perl use English; andy > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Rick Rankin > Sent: Friday, February 28, 2003 9:06 PM > To: Ben Wing; XEmacs NT List > Cc: Andy Piper > Subject: Re: cygwin -> mswindows pathname conversion under cygwin perl? > > > 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 > > > > > > > > > > > > > > > >