Re: What should /\08/ match and do?

[email protected] (Abigail)
Newsgroups perl.perl5.porters
Message-ID <20100604140554.GN12847@almanda>
On Fri, Jun 04, 2010 at 07:45:36AM -0600, karl williamson wrote:
> Abigail wrote:
>
> OK.  What about '\0a'  It doesn't warn currently.  It is analogous to  
> \08 but has a non-octal hex digit instead of a non-octal decimal digit.  
> Should it warn?


IMO, no. It doesn't now, and it's too easy to generate false warnings.
I also think it's very less likely to make a hexadecimal-instead-of-octal
error, then a digital-instead-of-octal error. After all, for most people
digital is what they've learned early in life. As Nick said, warning on
\08 makes sense, as it may happen because someone added 1 to \07, forgetting
about the octal issue. 

Heck, we don't even warn (and we shouldn't start now, I may add) on /\xabc/.


Abigail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.