in reply to Re: Use of uninitialized value in substitution iterator in variable expansion
in thread Use of uninitialized value in substitution iterator in variable expansion
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value in substitution iterator in variable expansion
by Roy Johnson (Monsignor) on Apr 07, 2005 at 16:44 UTC | |
by jaco (Pilgrim) on Apr 07, 2005 at 17:15 UTC | |
by jaco (Pilgrim) on Apr 07, 2005 at 17:26 UTC |