in reply to Re: reading a delimited file and selecting values from it
in thread reading a delimited file and selecting values from it

great, thats fantastic Kyle..

the data will be a lot more useful to have the values in some kind of array cos i plan to manipulate it further later .. your code with be invaluable to me as a base structure.

can i just ask , how i get the time variable to deal with phantom extra digits? e.g 1:59:52hi

how do i get it to disregard the extraneous data at the end? thanks again

  • Comment on Re^2: reading a delimited file and selecting values from it

Replies are listed 'Best First'.
Re^3: reading a delimited file and selecting values from it
by kyle (Abbot) on Mar 12, 2008 at 03:03 UTC

    The pattern I used already does that, as written. The pattern matches everything you want, up to the extraneous data, and that's where it stops.

    The problem with it (if you consider this a problem) is that the loop doesn't notice if there's a non-match. If you have some bogus line in the file, it's going to try to use it anyway. This will probably manifest as an undef quote at midnight. That's part of why I said it's a start.