in reply to Dynamically wrapping multiple modules
my %code = ( au => 'AU', fr => 'FR' ); foreach my $cc (@country_code) { croak("Country code $cc is not available") unless exists $code{$cc} +; eval( "require MyModule::$code{$cc}" ); croak("Unable to locate MyModule::$code{$cc}") if $@; }
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Dynamically wrapping multiple modules
by BigLug (Chaplain) on Apr 19, 2004 at 09:28 UTC | |
by eserte (Deacon) on Apr 19, 2004 at 10:53 UTC |