in reply to Can't use string ("2") as a HASH ref while "strict refs" in use
Without strict refs, something odd happens:
use Data::Dumper; no strict 'refs'; $x = 2; $x->{hrm} = "weird"; print "", Dumper([%{2}]), "\n"; # odd
It's allowing you to build a hashref with the name of "2", but it almost certainly isn't what you want.
-Paul
|
|---|