in reply to Use of uninitialized value in substr
but that seems a little unperlish to me?
I don't know what you mean. Except for the LHS of .=, I expect Perl to warn me when concatenating undef to a string. Here is another example of it:
use strict; use warnings; my $s = 'fred'; $s = substr($s,0,1) . undef . substr($s,3);
Use of uninitialized value in concatenation (.) or string at a.pl line + 4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value in substr
by BrowserUk (Patriarch) on May 03, 2010 at 15:51 UTC | |
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 | |
| |
|
Re^2: Use of uninitialized value in substr
by amedico (Sexton) on May 04, 2010 at 04:34 UTC |