$line =~ s/(\$\w+->{\w+})/"$1 or ''"/eeg; # or $line =~ s/(\$\w+->{\w+})/eval "$1" or ''/eg; # or my favorite $line =~ s/(\$\w+->{\w+})/eval "$1" or print(STDERR "$1 is not defined\n"), ''/eg;
In reply to Re^2: Use of uninitialized value in substitution iterator in variable expansion
by gam3
in thread Use of uninitialized value in substitution iterator in variable expansion
by jaco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |