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

[perl #7226] PADTMP set, but not READONLY, on non-writeable arg to function

Thread Previous
From:
Alexandr Ciornii via RT
Date:
April 13, 2010 01:37
Subject:
[perl #7226] PADTMP set, but not READONLY, on non-writeable arg to function
Message ID:
rt-3.6.HEAD-6227-1271147869-991.7226-15-0@perl.org
Still happens on 5.12 RC0.

On Tue Jul 03 02:59:12 2001, jpinyan@sushi.riskgrades.com wrote:

> I don't get told I can't change $_[0] here.  I really think I should.
> 
>   sub foo { $_[0] = 1 }
>   foo($_ . 'x');
> 
> It runs without a hitch.

-- 
Alexandr Ciornii, http://chorny.net


Thread Previous


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