An alternative to using substr() as an lvalue is to specify the replacement string as the 4th argument.Nothing in there about undef being recognized as a warning-free shortcut for an empty string.
In reply to Re^2: Use of uninitialized value in substr
by amedico
in thread Use of uninitialized value in substr
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |