http://qs321.pair.com?node_id=1081486


in reply to Monitoring directory contents

it is not simpler a solution like:
## pseudo code: my %cache_of_already_read_files; my $sleep_between = 300; while (1){ my @xml = &get_xml_files_names; # opendir, system (ls).. foreach (@xml) { next if exists $cache_of_already_read_files{$_}; $cache_of_already_read_files{$_} = 'found at'.scalar (localti +me(time)); &my_copy_to_destination ($cache_of_already_read_files{$_} ); } sleep $sleep_between; }
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.