Hi,

I have a piece of code in which I have to use some filehandles:

if( $^O eq "MSWin32"){
open(INPUT, "..\SampleConfig.xml");
}
else {
open(INPUT, "SampleConfig.xml");
}

open(OUTPUT, ">LoaderConfig.xml");

while(<INPUT>)
{print "Hi hello\n";
if ($_ =~ /<UserName>/){print OUTPUT "  <UserName>$db_user</UserName>\n";
}

The problem I am facing in Nt machine with the script is that it does not
take relative paths in the input file handle. ANy suggestions as to why this
is so whereare in UNIX relative apths are getting accepted.
K.Srinivas


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to