John,
Thanks. That's more or less what I was after. In the line below, could you explain how ord for split m{} works please? I haven't seen that syntax before. Very cool though!
$numStr .= sprintf q{%03d}, ord for split m{}, $str;
In reply to Re^2: convert string of chars and numerics to a numeric value
by js1
in thread convert string of chars and numerics to a numeric value
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |