tye, I think you need to change:
split/\s+(\d+ ... # ^
to
split/\s*(\d+ ... # ^
otherwise it fails to capture '1.' => 'AB_CD'.
Athanasius <°(((>< contra mundum
In reply to Re^2: Convert string to data structure (split)
by Athanasius
in thread Convert string to data structure
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |