"why should you have to for something that could not possibly by "by accident""
Explain. How could your use of undef in your example, be "by accident"?
$s = substr($s,0,1) . undef . substr($s,3);
The rest. Equally misjudged.
In reply to Re^6: Use of uninitialized value in substr
by BrowserUk
in thread Use of uninitialized value in substr
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |