Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: split line from one point

by toolic (Bishop)
on Oct 19, 2011 at 12:27 UTC ( #932378=note: print w/replies, xml ) Need Help??

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:
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

    it is strange because again the problem was repeated. read line error! i didn't have before this problem. i think it is because of changing the Perl version

      But what "read line error"? What is the string value of  $! (see perlvar) associated with the error?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932378]
Discipulus is managing to update/crack his first garmin navigtor: until now just paper maps
Discipulus and discoverd it use sqlite db.. DBI can read it!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2017-09-25 14:06 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.