suhailck has asked for the wisdom of the Perl Monks concerning the following question:
use strict; my $file="abc786"; while(1) { if (-s $file > 0) { open(my $in,"+<",$file) or die "$!"; print STDOUT <$in>; seek($in,0,0); truncate($in,0); } sleep 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::Daemon help
by Anonymous Monk on Jul 27, 2011 at 06:35 UTC | |
|
Re: Win32::Daemon help
by Marshall (Canon) on Jul 27, 2011 at 21:47 UTC |