New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local($#array) is not local :( #4261
Comments
From jefpin@towers.crusoe.net @a = (1..5); __END__ That's a bit discouraging. Perl Info
|
From @schwernHmmm. Doesn't even do what I thought it would do (ie. return $#a to Anyhow, you can get the desired effect with: @a = (1..5); |
From @LeontOn Tue Jul 31 05:05:12 2001, jefpin@towers.crusoe.net wrote:
I'm not sure there's a sane way to support this. At the very least we Leon |
From @cpansproutOn Sun Dec 11 11:41:31 2011, LeonT wrote:
We could make it work like tied variables. ...Ahem, but without the bugs -- Father Chrysostomos |
From @doyOn Sun, Dec 11, 2011 at 11:41:32AM -0800, Leon Timmermans via RT wrote:
Couldn't we just turn "local $#a = 2" into "local @a = @a[0..2]"? That -doy |
From @cpansproutOn Sun Dec 11 12:14:18 2011, doy@tozt.net wrote:
We could, but the localised tie mechanism already exists, so my -- Father Chrysostomos |
From @ikegamiOn Sun, Dec 11, 2011 at 2:41 PM, Leon Timmermans via RT <
We do warn. $ perl -wE'@a=(0..4); { local 5.14.0 |
From @cpansproutOn Sun Dec 11 13:00:15 2011, sprout wrote:
Oops. I thought you were replying to me, but you weren’t. I was -- Father Chrysostomos |
Migrated from rt.perl.org#7411 (status was 'open')
Searchable as RT7411$
The text was updated successfully, but these errors were encountered: