LWN.net Logo

On the future of Perl 5

On the future of Perl 5

Posted Dec 7, 2008 2:05 UTC (Sun) by madscientist (subscriber, #16861)
In reply to: On the future of Perl 5 by sbergman27
Parent article: On the future of Perl 5

> And just to make a point:
>
> ---
>> x = "0"
>> y = -x
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: bad operand type for unary -: 'str'
> ---
>
> In perl that would have silently become a numeric 0. Oops.

I don't get the point you're trying to make. When or why would Perls' behavior be an "oops"? Or put another way, what problem would this cause in the code?


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds