>The first one looks wrong to me:
>
> # perl -wle \'$f = "-fo";  print -$f\'
> +fo
> # perl -wle \'$f = "-NaN";  print -$f\'
> +NaN
>
>Ugh. You learn to find some dusted, obscure Perl corner every day...
>
This behavior is clearly documented in perlop:

"if the string starts with a plus or minus, a string starting with the opposite 
sign is returned"

I'm more interested in the problems 1 and 3.

Reply via email to