|We don't bite newbies here... much|
convert string of chars and numerics to a numeric valueby js1 (Monk)
|on Apr 20, 2007 at 10:03 UTC||Need Help??|
js1 has asked for the
wisdom of the Perl Monks concerning the following question:
Is there a straightforward way of converting a string of chars and numerics such as smpl95, smpd9, fuj324 etc.... to a numeric value.
The numeric value could be generated any way, just as long as it returned a number. So for example:
A given string will always return the same value on each call. I'm not worried about being able to reverse the number after, into the same string though.