HI,
I wonder why the -f file test no longer works on some machines, yet others.
I know there is a file called /when i do things lik
if(-f $file){
do this
}
else{
do that
}
where $file ="/
and the "do that" clause always execute, even if I substitute the exact file path with $file. The same program works at my school, yet do not at my home PC, both running windows (but it is not related anyway since it is executed on my Unix host server)
Yet, it is very strange, but I sure this has a cause, and hopefully someone has a solution for it.
thanks
I wonder why the -f file test no longer works on some machines, yet others.
I know there is a file called /when i do things lik
if(-f $file){
do this
}
else{
do that
}
where $file ="/
and the "do that" clause always execute, even if I substitute the exact file path with $file. The same program works at my school, yet do not at my home PC, both running windows (but it is not related anyway since it is executed on my Unix host server)
Yet, it is very strange, but I sure this has a cause, and hopefully someone has a solution for it.
thanks