in reply to Reference curiosity?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reference curiosity?
by Anonymous Monk on Apr 23, 2006 at 19:07 UTC |