
Kanji
User
/ Moderator
Sep 13, 2000, 3:48 PM
Post #2 of 2
(1701 views)
|
Re: Finding a File inside a Directory
[In reply to]
|
Can't Post
|
|
No need for an array: just use a file test operator such as the one for (whoa!) file existence! <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> if ( -e "/usr/src/images/video.mpg" ) { print "It does"; } else { print "It doesn't"; }</pre><HR></BLOCKQUOTE>
|