Note: untested
--{ local $/ = "TTY"; open FILE, "<", $filename or die "open $filename: $!\n"; my @ttys = <FILE>; my @data = (); foreach (@ttys) { push @data, $_; last if /EOS/; } close FILE or die "close $filename: $!\n"; }
In reply to Re: Help with Reading in of a flat file...
by FoxtrotUniform
in thread Help with Reading in of a flat file...
by basicdez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |