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