in reply to A maybe rather silly question...

Are each of the fields of a fixed length? That is, does the field you wish to isolate always start at character 7 of the line, and is it always 10 characters long?

If so, read up on the substr function.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^2: A maybe rather silly question...
by Anonymous Monk on Feb 27, 2014 at 15:06 UTC
    In substr you can't specify "Start from character 7 and continue until you find a blank space", right? Or can you?

      But you could read from character 7 till the end, and then use split to get the part before the first whitespace ...

      ... or use index to search for the first blank after position 7, and adjust your substr accordingly ...

      so many possibilities ;-)