in reply to Reading a Flat File and Extracting Data
Use the simplest tool available unless you know you have a reason for reaching for the big guns. I've had to guess where the fields are:
c:\>p1 Perl> $line = '00UPDATE2006121509200120061215095000000000058Version 02 +.7.0.0';; Perl> @fields = unpack 'A2 A6 A10 A4 A10 A13 A*', $line;; Perl> print for @fields;; 00 UPDATE 2006121509 2001 2006121509 5000000000058 Version 02.7.0.0
|
|---|