in reply to Re: convert string of chars and numerics to a numeric value
in thread convert string of chars and numerics to a numeric value
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: convert string of chars and numerics to a numeric value
by johngg (Canon) on Apr 20, 2007 at 13:21 UTC |