in reply to Waiting For File Extension Changes

Would these do what you want? You're not mentioning the possibility of extraneous plc or pld files, which would throw off these methods.
1 while (@_ = <*.plc>);
1 while ((@_ = <*.pld>) < $count);

(Just calling glob() or the <glob> operator in scalar context will pick a filename for you, not return the count. Hence the assignments.)

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Waiting For File Extension Changes
by Murpher (Initiate) on May 21, 2003 at 17:42 UTC
    Good idea. I'm 'King Of The Paranoid' though and really wanted to keep a list of the filenames that I know I'm waiting for - just in case there are any old files still lurking in that directory. I appreciate your suggestion though.