develooper Front page | perl.perl5.porters | Postings from April 2013

Re: [perl #54044] perl -wle '%::=();//' crash

Thread Previous | Thread Next
From:
Brian Fraser
Date:
April 10, 2013 09:48
Subject:
Re: [perl #54044] perl -wle '%::=();//' crash
Message ID:
CA+nL+na8JvAsL+tj63AVnFcQ_VaZvase4e8iD77A5f5qrE2biw@mail.gmail.com
Another objection, I don't think either of these should fail:

$ ./perl -e '%:: = %::'
Attempt to clear the %main:: symbol table at -e line 1.

$ ./perl -e '%:: = map { $_ => $::{$_} } grep !/foo|bar/, keys %::;'
Attempt to clear the %main:: symbol table at -e line 1.



On Tue, Apr 9, 2013 at 2:09 AM, Brian Fraser <fraserbn@gmail.com> wrote:

> On Tue, Apr 9, 2013 at 2:03 AM, Steffen Mueller <smueller@cpan.org> wrote:
>
>> On 04/08/2013 11:27 PM, Reini Urban via RT wrote:
>>
>>> On Mon Apr 08 11:36:23 2013, rurban wrote:
>>>
>>>> Oops, previous patch had a last minute typo in it (sv vs hv)
>>>>
>>>> Use this one instead.
>>>> I'm smoking it now with my cpan subset to catch possible
>>>> %{"$pkg\::"}=... cases with empty $pkg.
>>>>
>>>
>>> Smoked my cpan successfully with this revised patch.
>>>
>>
>> FWIW if nobody beats me to it or strongly objects I'll try to remember to
>> apply this after 5.18. Feel free to remind me then as well.
>>
>> --Steffen
>>
>
> My soft objection is that it doesn't really solve the underlaying issue,
> it just hides it; perl -e 'delete $::{ENV}; chdir' will still fail. But
> that's a reason to keep the ticket open, not one not to merge the patch.
>
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About