Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: Problem with POE-Component-DirWatch

by benlaw (Scribe)
on Mar 13, 2006 at 22:54 UTC ( #536407=note: print w/replies, xml ) Need Help??

in reply to Re^2: Problem with POE-Component-DirWatch
in thread Problem with POE-Component-DirWatch

Thanks for all monks! I try to modify the filter to
Filter => sub { $_[0] =~ /.txt$/ && -f $_[1] },
then I re-run, it print the following message repeatly until i del file test.txt manually
Tue Mar 14 06:41:06 2006 test.txt (C:\temp\test.txt) Tue Mar 14 06:41:06 2006 test.txt (C:\temp\test.txt)
however I try paste new_test.txt to c:\temp\, it seems no response (May be the same with runrig) my perl version is "v5.8.4 built for MSWin32-x86-multi-thread"

Replies are listed 'Best First'.
Re^4: Problem with POE-Component-DirWatch
by runrig (Abbot) on Mar 13, 2006 at 23:08 UTC
    Find the rewind line in the poll subroutine in the module and replace it with:
    # rewind to directory start # $heap->{DirHandle}->rewind; $heap->{DirHandle}->close; $heap->{DirHandle}->open($heap->{Directory}) or croak "Can't open $heap->{Directory}: $!\n";
    The module and your code seem to work with the above changes. (I've emailed the module author with a link to this thread).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://536407]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-09-24 06:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found