in reply to string to scalar?
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.
|
|---|