in reply to split line from one point
What moritz said, and if you want to keep what is before and after the T, split into an array:
prints...use warnings; use strict; while (<DATA>) { my @items = split /T/; print "@items"; } __DATA__ 2010-12-01T20:15:20.000+01:00 2010-12-01T21:10:18.000+01:00 2010-12-01T21:15:40.000+01:00 2010-12-01T23:28:04.000+01:00 2010-12-01T20:16:33.000+01:00
2010-12-01 20:15:20.000+01:00 2010-12-01 21:10:18.000+01:00 2010-12-01 21:15:40.000+01:00 2010-12-01 23:28:04.000+01:00 2010-12-01 20:16:33.000+01:00
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: split line from one point
by Anonymous Monk on Oct 19, 2011 at 12:37 UTC | |
by AnomalousMonk (Archbishop) on Oct 19, 2011 at 19:00 UTC |
In Section
Seekers of Perl Wisdom