If you want a consistent value given an arbitrary string, I would suggest some sort of hashing algorithm, such as that embodied in the *ix sum program. Treating the string as a base-36 number is another possibility. For this you could use the Math::base36 module.
emc
Insisting on perfect safety is for people who don't have the balls to live in the real world.
In reply to Re: convert string of chars and numerics to a numeric value
by swampyankee
in thread convert string of chars and numerics to a numeric value
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |