in reply to Re: Use of uninitialized value in substr
in thread Use of uninitialized value in substr
I expect Perl to warn me when concatenating undef to a string.
This is not about " concatenating undef to a string.". Though even in your unrealistic example, you've explicitly chosen to do that--as dumb as it is--so why should you expect or want a warning. Yes, you could suppress it, but why should you have to for something that could not possibly by "by accident".
The real question is about making explicit undef semantically different from indirect undef; and therefore making it more powerful, and useful.
The consensus, to my surprise, is that isn't useful. I think that's at least a premature judgement, if not outright wrong, but I'm insufficiently enamoured with the notion to argue the case further. Which is why I made this 'testing of the waters' post, a SoPW rather than a meditation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value in substr
by ikegami (Patriarch) on May 03, 2010 at 16:12 UTC | |
by BrowserUk (Patriarch) on May 03, 2010 at 16:20 UTC | |
by ikegami (Patriarch) on May 03, 2010 at 16:42 UTC | |
by BrowserUk (Patriarch) on May 03, 2010 at 17:17 UTC | |
|