This gives me the same warning. I thought it should work as well, though i wrote it like this with and without parans around the defined statement as mentioned above. Curious
for my $line (@cfile){ $line =~ s/(\$\w+->{\w+})/defined $1 ? $1 : ''/eeg; $line =~ s/(\$\w+)/defined $1 ? $1 : ''/eeg; $text .= $line; }
In reply to Re^2: Use of uninitialized value in substitution iterator in variable expansion
by jaco
in thread Use of uninitialized value in substitution iterator in variable expansion
by jaco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |