Re: Perl on Linux and Windows XP

2002-06-29 Thread drieux
On Saturday, June 29, 2002, at 05:37 , <[EMAIL PROTECTED]> wrote: > Hello there! > I wrote a script which I tested on Linux and Windows XP. > The following code works differently on the OS. > $path = /data/../dir/Sound > $filename = $query->param('filename'); $filename ||= "safety.txt"; > ope

Perl on Linux and Windows XP

2002-06-29 Thread bss96kci
Hello there! I wrote a script which I tested on Linux and Windows XP. The following code works differently on the OS. $path = /data/../dir/Sound $filename = $query->param('filename'); open(DIR,">$path/$filename"); binmode(DIR); print DIR $_; close (DIR); On Linux, instead of the $filename being wr