in reply to parsing a line into a list/array

Well, just to offer another way to do it:
$text =~ /(.*) - (.*) - (.*)/; @field = ($1, $2, $3);
This is better if the delimiters aren't likely to stay the same forever ...