in reply to When is 'eval' too inefficient?
If you want a number force numeric conversion.
$ perl -le '$var1 = "0.00"; $value += ($var1+0) || 99; print $value' 99
And your use of eval there is string eval so yes that's expensive and not really a good idea.
|
|---|