RE: file handle not working in NT

2002-01-24 Thread Wagner-David
When you use " and also have \ then Perl will take \ as indicating to take the next character as is. So the code open(INPUT, "..\SampleConfig.xml"); becomes in the processing "..SampleConfig.xml" which is not what you want. Either add an extra \ so you hav

RE: file handle not working in NT

2002-01-24 Thread John Edwards
Have you tried if( $^O eq "MSWin32"){ open(INPUT, "../SampleConfig.xml") or die "Can't open .../SampleConfig.xml: $!"; } else { open(INPUT, "SampleConfig.xml") or die "Can't open SampleConfig.xml: $!"; } Note forward slash... John -Original Message- From: K.Srinivas [ma