in reply to Parsing a Formatted Text File
#!/usr/bin/perl use warnings; use strict; while (not eof) { my @lines = map scalar <>, 1 .. 58; # Process the record. }
Update: Simplified as per Re^2: Parsing a Formatted Text File. Thanks, the unnamed one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a Formatted Text File
by Anonymous Monk on Mar 23, 2015 at 14:54 UTC | |
|
Re^2: Parsing a Formatted Text File
by GotToBTru (Prior) on Mar 23, 2015 at 14:56 UTC | |
|
Re^2: Parsing a Formatted Text File
by Pharazon (Acolyte) on Mar 23, 2015 at 14:53 UTC |