The answer depends on how rigid and accurately followed the data format is. If those are fixed-width fields, unpack may be best. If it's always the same fields highlighted by stars, split will be fine. Here's a way to get just the highlighted ones, wherever they are:
while (<$fh>) { my @star_fields = m/\*([^*]*)\*/g; # . . . }
Note the escapes for literal '*'. I imagine those were what were giving you trouble. They will need to be escaped for a split pattern, too.
After Compline,
Zaxo
In reply to Re: Smartest Way To Split
by Zaxo
in thread Smartest Way To Split
by ellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |