in reply to Use of uninitialized value in substitution iterator in variable expansion
should work. The first e will expand it to a statement, and the second will evaluate the statement.$line =~ s/(\$\w+)/"defined $1 ? $1 : ''"/eeg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value in substitution iterator in variable expansion
by gam3 (Curate) on Apr 07, 2005 at 16:37 UTC | |
|
Re^2: Use of uninitialized value in substitution iterator in variable expansion
by jaco (Pilgrim) on Apr 07, 2005 at 16:30 UTC | |
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 |