This is better if the delimiters aren't likely to stay the same forever ...$text =~ /(.*) - (.*) - (.*)/; @field = ($1, $2, $3);
In reply to Re: parsing a line into a list/array
by Anonymous Monk
in thread parsing a line into a list/array
by patman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |