in reply to Re: how to populate array with last 20 lines of file
in thread how to populate array with last 20 lines of file
the file is only 8KB, but it just got stuck. nothing in progress..use strict; use File::tail; my $file = File::Tail->new('C:/Users/tiang/Documents/Perl/daily.20170 +731142932.txt'); while(defined(my $line = $file->read)) { print "$line\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to populate array with last 20 lines of file
by talexb (Chancellor) on Aug 08, 2017 at 18:05 UTC | |
by ytjPerl (Scribe) on Aug 08, 2017 at 18:08 UTC | |
|
Re^3: how to populate array with last 20 lines of file
by shadowsong (Pilgrim) on Aug 08, 2017 at 21:23 UTC | |
|
Re^3: how to populate array with last 20 lines of file
by poj (Abbot) on Aug 08, 2017 at 18:23 UTC |