On Mon, 24 Dec 2001, Rod Roark wrote:
> > also, when a perl script makes use of a pathname under windows, say,
> >
> > open(FP, "/directory/file") or die "Can't open file";
> >
> > do i use `/' or `\'?
>
> Probably something like "c:\\directory\\file".
The DOS/Windows kernel understands forw
--- Peter Jay Salzman <[EMAIL PROTECTED]> wrote:
> in perl, how does one go about detecting what
> operating system the
> program is running under?
---
#!/perl/bin/perl -w
use strict;
my $OS = '';
# - Thanks to the author of CGI.pl -
#
# FIGURE OUT THE OS WE'RE R
On Monday 24 December 2001 08:22 am, Peter Jay Salzman wrote:
> in perl, how does one go about detecting what operating system the
> program is running under?
Try "$^O".
> also, when a perl script makes use of a pathname under windows, say,
>
> open(FP, "/directory/file") or die "Can't ope
in perl, how does one go about detecting what operating system the
program is running under?
also, when a perl script makes use of a pathname under windows, say,
open(FP, "/directory/file") or die "Can't open file";
do i use `/' or `\'?
pete
--
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D3