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 open file";
>
> do i use `/' or `\'?

Probably something like "c:\\directory\\file".

-- Rod
_______________________________________________
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech

Reply via email to