Charles Farinella wrote:
> 
> I need to look at a directory for about 90 seconds, and if a certain
> file shows up, do something with it.  A pointer to a man page or any
> reference would be appreciated.

If you know the file name in advance then use one of the file test
operators like -e or maybe -s:

perldoc -f -X

Or you could use stat or open which will return undef and report an
error through $! if the file does not exist.

perldoc -f stat
perldoc -f open

If you only know part of the file name you could use glob or
opendir/readdir.

perldoc -f glob
perldoc -f opendir
perldoc -f readdir



John
-- 
use Perl;
program
fulfillment

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


Reply via email to