On 5/16/07, R (Chandra) Chandrasekhar <[EMAIL PROTECTED]> wrote:
snip
Can anyone please tell me why I get this inconsistent behaviour and how to
overcome it?
snip

It is not inconsistent, you are using file names without the proper
path.  If a file or directory exists in the current directory with the
same name as one in /usr you will get a result, otherwise there is no
file, so you are told false for both.  You can fix your code by either
prefixing the file name with the directory or doing chdir() into
$testdir.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to