jamaas has asked for the wisdom of the Perl Monks concerning the following question:
=================
data file
=================1234567890123456 2004-07-10 14:47:39 51.12345 -1.12345
my latest failing perl script!
text#!/usr/bin/perl open (INPUT, "< data") or die "Couldn't open data file for reading: $!\n"; while (<INPUT>) { $firstvalue =~ /(\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d)/; # match first 16 + digit value print $firstvalue #"This is the first parameter.\n"; } close (INPUT);
janitored by ybiC: Balanced <code> tags around codeblock, as per Monastery convention.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: newbie attempting to extract
by Velaki (Chaplain) on Oct 03, 2004 at 07:17 UTC | |
by jamaas (Novice) on Oct 03, 2004 at 07:30 UTC | |
by jamaas (Novice) on Oct 03, 2004 at 15:11 UTC | |
by Prior Nacre V (Hermit) on Oct 04, 2004 at 01:15 UTC | |
|
Re: newbie attempting to extract
by CountZero (Bishop) on Oct 03, 2004 at 12:09 UTC | |
|
Re: newbie attempting to extract
by Cody Pendant (Prior) on Oct 04, 2004 at 05:46 UTC |