in reply to Re^3: How do I pretend a reference isn't a reference
in thread How do I pretend a reference isn't a reference
If you change the map so:That problem goes away also. (I made a similar error myself earlier:)my @months = map{tie my $var, i18n::String2, $_; $var } qw(Januar +y February);
Actually, it doesn't :) What is stored in @months is not tie'd anonymous variables, but the result of FETCH'ing $var. In other words, it does the translation at compile time, rather than at runtime.
Clint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How do I pretend a reference isn't a reference
by BrowserUk (Patriarch) on Nov 06, 2008 at 11:42 UTC | |
by clinton (Priest) on Nov 06, 2008 at 11:52 UTC |
In Section
Seekers of Perl Wisdom