http://www.perlmonks.org?node_id=449499


in reply to Re: starting a script when a file appears in a directory
in thread starting a script when a file appears in a directory

IIRC FAM has to do with SGI/Irix and while it's obviously sensible to at least mention it in this context, I suppose that at best it is portable to other *NICES (but I would be glad to be disproved!) OTOH the following answer, mentioning a Win32 specific module seems much more on topic.

Replies are listed 'Best First'.
Re^3: starting a script when a file appears in a directory
by gellyfish (Monsignor) on Apr 20, 2005 at 09:23 UTC

    SGI::FAM definitely does work on Linux (see for instance Re: pause/wait command? ) and as FAM itself is open source it is possible that it has been ported to other OS too

    /J\

Re^3: starting a script when a file appears in a directory
by hubb0r (Pilgrim) on Apr 20, 2005 at 14:07 UTC
    Agreed. I glossed over the fact that it was on win32 when I replied.

    And yes, it definitely does work! I decided to play around with it last night after posting and got it to do exactly what I expected it to. I must say though that the errors that it throws get a little confusing because it has a lot of xs code in it.
      I must say though that the errors that it throws get a little confusing because it has a lot of xs code in it.
      I must say that I don't know much about the subject matter being actually discussed here. However what I would tend to disagree is the claim above, for out of my (possibly limited) experience I don't see any explicit relation between "having a lot of XS code" and "throwing confusing erros".