in reply to Re^2: Numification of stringsin thread Numification of strings
dualvar NUM, STRING
Returns a scalar that has the value NUM in a numeric contex
the value STRING in a string context.
$foo = dualvar 10, "Hello";
$num = $foo + 2; # 12
$str = $foo . " world"; # Hello world
And what does this disagree with? I never said the integer and string values of a scalar variable have to be in any way related.
Enoch was right!
Enjoy the last years of Rome.
Perl is so magic that, easy answers are not always true...
A subterranean mammal
A skin blemish
A sprained ankle
A Childrens Book
The Marvel Comics supervillain
The unit of measure
Wie is de Mol
A futuristic drilling vehicle
The Wind in The Willows
Results (228 votes). Check out past polls.