splitOnce has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys, I know this is an easy one but since I am new , I would have problems like this :
I need to check weather a file exists or not under a certain directory ,,
the file
and I know the directory as well,$targetFile = "theFile"
so I need to know if it exists under foo, knowing that I am not under foo when searching for that file or I could be as well, I tried the -e and local but don't seem to work ,, thanks for hints on this one ./bin/do/foo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: checking for a file
by dada (Chaplain) on Aug 02, 2002 at 14:02 UTC | |
by Massyn (Hermit) on Aug 02, 2002 at 14:26 UTC | |
by splitOnce (Acolyte) on Aug 02, 2002 at 14:48 UTC | |
Re: checking for a file
by dreadpiratepeter (Priest) on Aug 02, 2002 at 14:01 UTC |
Back to
Seekers of Perl Wisdom