in reply to Re^4: How do I pretend a reference isn't a reference
in thread How do I pretend a reference isn't a reference
Well yes, but isn't your use/implementation of map in the example just a for testing?
In your original example you had:
my @days = ( _('Mon'),_('Tues'),_('Wed'),_('Thurs'),_('Fri'),_('Sat'),_('Sun') );
So if your later example became
my @days = map _( $_ ), qw[ Mon Tue Wed Thu Fri Sat Sun ];
with all the choosing of packages and tieing hidden inside sub _{ ... }, then the translation will be done at runtime as required?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How do I pretend a reference isn't a reference
by clinton (Priest) on Nov 06, 2008 at 11:52 UTC |