How time-critical is it?
is it time-critical as an nuclear chain reaction or time-critical like cooking
a gumbo?
until ( -e $file) {
sleep(1);
}
If the resultion of 1 sec is not good enough use time::hires...
"Mr. Shawn H. Corey" <[EMAIL PROTECTED]> hat am 26. November 2008 um 16:20
geschrieben:
> On Wed, 2008-11-26 at 20:31 +0530, Sharan Basappa wrote:
> > Hi,
> >
> > I am writing a scheduler for some proprietary task.
> > There are two questions pertaining to this
> >
> > 1) I have to wait for creation of a file by some external process. How
> > do I do that in perl?
> > In other words, is it possible to list out the files in perl?
>
> See `perldoc -f glob`
>
> >
> > 2) If file is not created then I have to wait for sometime. How do I
> > put real time delay in perl?
>
> See `perldoc -f sleep`
>
>
> --
> Just my 0.00000002 million dollars worth,
> Shawn
>
> The key to success is being too stupid to realize you can fail.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>