- or download this
use strict;
my $v = 'x';
print qq"$v{a}";
__END__
xa
- or download this
use strict;
my $v = 'x';
print qq{$v{a}};
__END__
Global symbol "%v" requires explicit package name at -e line 3.
- or download this
"a " . $b . " -> {c}";
- or download this
"a " . $b -> {c};
- or download this
use strict;
my $var = "this";
print "$var{whatever}";
__END__
Global symbol "%var" requires explicit package name at -e line 3.
- or download this
use strict;
my $var = "this";
print "${var}{whatever}";
__END__
this{whatever}