is there a simpler way of doing this, like splitting it into an array with a regular expression?Actually yes, this is possible with a regular expression.
perlop: If the "/g" option is not used, "m//" in list context returns a list consisting of the subexpressions matched by the parentheses in the pattern, that is, ($1, $2, $3...)my ($board_total, etc...) = map $B10->to_base($_), $DC =~ /(....)(..)(..)(.....)(..)/;
In reply to Re: Dividing a string into multiple substrings of different length
by Anonymous Monk
in thread Dividing a string into multiple substrings of different length
by BlueSaxman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |