Because Perl is a weakly-typed language, there is no "string" or "integer" data type as such. Scalars variables are numbers or strings, depending on how you use them.
If you have $num1 = "36" and $num2 = "10", then if you do: $sum = $num1 + $num2 $sum will be equal 46.
In reply to Re: string to scalar?
by virtualsue
in thread string to scalar?
by Fian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |