in reply to newbie attempting to extract
I believe that you are looking for the split function.
That will produce#!/usr/bin/perl use strict; use warnings; while(<DATA>) { my @a = split; # split record into fields print "Value = $_\n" for @a; # print out all fields print "\n"; # blank line between "records" } __DATA__ 1234567890123456 2004-07-10 14:47:39 51.12345 -1.12345
Hope that helped,Value = 1234567890123456 Value = 2004-07-10 Value = 14:47:39 Value = 51.12345 Value = -1.12345
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: newbie attempting to extract
by jamaas (Novice) on Oct 03, 2004 at 07:30 UTC | |
|
Re^2: newbie attempting to extract
by jamaas (Novice) on Oct 03, 2004 at 15:11 UTC | |
by Prior Nacre V (Hermit) on Oct 04, 2004 at 01:15 UTC |