Here's my problem:
I'm using a file to store information about some stuff in delimited form. It is a linked list, so when I get the value of a link it is a string/scalar. I need it to be an integer though.
--Currently I use:
$link = ord($scalar) - 48;
e.g. if $scalar = "4" then $link would end up being 4
This works for the numbers 0 to 9 but once it gets to the number 10 it goes wrong. If $scalar is "10" then $link nds up being 1.
ANY ALTERATIVES FOR CHANGING "10" into 10 please.