Your second example does display the appropriate run-time error messages:
This is easily corrected by changing line 6 to:Global symbol "%hash" requires explicit package name at test-hashref.p +l line 6. Global symbol "%hash" requires explicit package name at test-hashref.p +l line 6. Global symbol "%hash" requires explicit package name at test-hashref.p +l line 6.
which printsprint "$hash->{A} $hash->{B} $hash->{C}\n";
as expected.1 2 3
"For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken
In reply to Re: Reference curiosity?
by NetWallah
in thread Reference curiosity?
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |