in reply to Convert strings into numbers
You certainly don't give us much to go on. There are many ways to convert strings to numbers. One or two of them might even be useful to you.
Perl knows how to convert some strings to numbers. Here's an example:
my $string = "123"; my $number = $string+0;
Perhaps the number you want is the length of the string? This would do it:
my $stringlen = length($string);
Perhaps you wanted a different conversion? If so, you might tell us what sort of conversion you're interested in...
</snarky_mode>
...roboticus
|
|---|