in reply to Use of uninitialized value in substitution iterator in variable expansion

As a first countermeasure you can simply put a "no warnings" into your loop.
for my $line (@template){ no warnings; $line =~ s/(\$\w+->{\w+})/$1/eeg; $line =~ s/(\$\w+)/$1/eeg; $text .= $line; }


holli, /regexed monk/
  • Comment on Re: Use of uninitialized value in substitution iterator in variable expansion
  • Download Code