Re: [vox-tech] perl question: how to detect operating system?

2001-12-25 Thread Mark K. Kim
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

Re: [vox-tech] perl question: how to detect operating system?

2001-12-24 Thread Jim Angstadt
--- 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

Re: [vox-tech] perl question: how to detect operating system?

2001-12-24 Thread Rod Roark
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

[vox-tech] perl question: how to detect operating system?

2001-12-24 Thread Peter Jay Salzman
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