in reply to Re^2: Can't use string ("langLogin") as a HASH ref while "strict refs"
in thread Can't use string ("langLogin") as a HASH ref while "strict refs"
If you're absolutely intent on doing it with symrefs, though, you'll need to turn off strict mode. I reccomend confining the non-strict code to the smallest possible block. Something like this should work.
my %lang; { no strict 'refs'; %lang = %{'lang' . $ARGS{lang}}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't use string ("langLogin") as a HASH ref while "strict refs"
by Anonymous Monk on Jan 23, 2006 at 11:23 UTC |