defmer has asked for the wisdom of the Perl Monks concerning the following question:
thank you#!/usr/bin/perl use strict; use warnings; use File::Monitor; use File::Monitor::Object; my $monitor = File::Monitor->new(); $monitor->watch('/home/test/work/obsrv'); my $flag=1; while(1) { $monitor->scan; $flag=1; while ($flag){ for my $change ($monitor->scan){ print ("\n new file was created!!!!"); $flag=0; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Monitor does not work ...
by toolic (Bishop) on Mar 29, 2009 at 01:10 UTC | |
|
Re: File::Monitor does not work ...
by Bloodnok (Vicar) on Mar 29, 2009 at 01:13 UTC | |
|
Re: File::Monitor does not work ...
by Corion (Patriarch) on Mar 29, 2009 at 00:36 UTC |