Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Watching a directory with POE::Component::DirWatch

by Anonymous Monk
on Mar 04, 2009 at 12:43 UTC ( [id://748114]=note: print w/replies, xml ) Need Help??


in reply to Watching a directory with POE::Component::DirWatch

sub found_file { use Data::Dumper; die Data::Dumper->new([@_])->Indent(0)->Dump; }

Replies are listed 'Best First'.
Re^2: Watching a directory with POE::Component::DirWatch
by Anonymous Monk on Mar 04, 2009 at 12:46 UTC
    POE::Component::DirWatch#file_callback
    Optional read-write code reference to call when a file is found. The code reference will passed a single argument, a Path::Class::File object representing the file found. It usually makes most sense to process the file and remove it from the directory to avoid duplicate processing

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found