[-doughera]
On Tue, Jun 3, 2008 at 12:11 AM, Raphael Hertzog <[EMAIL PROTECTED]> wrote:
> On Mon, 02 Jun 2008, Brendan O'Dea wrote:
>> Modifying update-alternatives to set $ENV{PERL_DL_NONLAZY} would
>> appear to be the most appropriate solution here.
>
> I tried this but it doesn't work. The variable needs to be set before perl
> is executed apparently. So you'd need some trick so that the script exec
> itself a second time but with the environment variable set.
Really? Something like this fails?
BEGIN {
local $ENV{PERL_DL_NONLAZY} = 1;
eval {
require "Locale::Gettext";
Locale::Gettext->import;
};
if ($@) {
# handle
}
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]