in reply to Long string needs to be separated
use strict; use warnings 'all'; unless(open(FH,'<test.dat')) { die "Could not open file\n"; } my $temp; while(sysread(FH,$temp,5,0)) { print $temp,"\n"; } close(FH);
1234567890abcdefghijklmnopqrstuvwxyz
HTH12345 67890 abcde fghij klmno pqrst uvwxy z
|
|---|