qbxk has asked for the wisdom of the Perl Monks concerning the following question:
this prints nothing! however, immediately after running that i produce this:open DIR, $ScratchDir or die $!; foreach my $file ( readdir(DIR) ) { print "$file\n"; }
so see! there's a file in there, what gives? oh and, ahem, it should be noted that this is a Mac~/cron $ ls -l ScratchDir total 322944 -rw-r--r-- 1 unamechanged unamechanged 165347328 27 Aug 11:55 filen +amechanged.mp3
~/cron $ uname -a Darwin WRUV-Studio.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 + 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Ma +cintosh powerpc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: readdir on files being modified
by borisz (Canon) on Aug 27, 2005 at 16:46 UTC | |
|
Re: readdir on files being modified
by Anonymous Monk on Aug 29, 2005 at 06:53 UTC |