I cant remeber how to do this but i've done it before in PHP.
I want to take off the last charater of a value, like the perl chomp/chop function.
$a = 75%;
$rawvalue = rtrim ($a, "%"
;
NOW $rawvalue should equal "75" right? but it doesnt work.
how do I chop off the last character of the variable?
I want to take off the last charater of a value, like the perl chomp/chop function.
$a = 75%;
$rawvalue = rtrim ($a, "%"
NOW $rawvalue should equal "75" right? but it doesnt work.
how do I chop off the last character of the variable?