in reply to Re^3: u+ fails to force scalar context to empty list assignment: +( () = ... )
in thread u+ fails to force scalar context to empty list assignment: +( () = ... )
Still different, your result is a string.
Perl works hard to treat all scalar sub-types equally by operators, but I seem to remember edge cases where the internal type mattered and resulted in errors.
No need to stringify a number.
And a reader - at least me - would be confused.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|