Handles $x = '$x'; but ?
#!/usr/bin/perl use strict; # https://perlmonks.org/?node_id=11153644 use warnings; my $cat = { dog => '$cat->{squirrel}', squirrel => 'fred' }; my $x='$cat->{dog}/mouse'; { my %loop; until( $loop{ my $new = eval qq("$x") }++ ) { $x = $new } } print "$x\n";
In reply to Re^4: Why is this string only PARTIALLY interpolated?
by tybalt89
in thread Why is this string only PARTIALLY interpolated?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |