in reply to Use of uninitialized value in substitution iterator in variable expansion
for my $line (@template){ no warnings; $line =~ s/(\$\w+->{\w+})/$1/eeg; $line =~ s/(\$\w+)/$1/eeg; $text .= $line; } [download]