in reply to Re^3: How to tail file on remote host
in thread How to tail file on remote host
With a pure filehandle this code worked for me, but I was not sure how I could get this working using this method.
Also since most of the servers are locked down I can't easily add packages such as Algorithm::Diff.
The code that worked for me using pure FH was something like:Thanks,open (FH,"/tmp/file); while (<FH>) { push @result,"$_"; print "$_\n"; } FH->clearerr; return @result;
Wayne
Thanks, Wayne
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to tail file on remote host
by Corion (Patriarch) on Oct 01, 2008 at 06:20 UTC |