* David Cantrell <[EMAIL PROTECTED]> [2008-10-23 18:10]:
> { local %ENV;
>   $ENV{PERL_INLINE_DIRECTORY} = catdir($ENV{PERL_INLINE_DIRECTORY},
>   'Pdlpp');
>   
>   ...
> }
> 
> (you can localise %ENV, right?)

Why not localise just that key?

    {
        local $ENV{PERL_INLINE_DIRECTORY}
            = catdir $ENV{PERL_INLINE_DIRECTORY}, 'Pdlpp';
        ...
    }

-- 
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}
&Just->another->Perl->hack;
#Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to