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
Assignment expands arrays #10453
Comments
From @yecril71plCreated by @yecril71plThe documentation on assignment operator is incomplete. PERLOP(1) Perl Programmers Reference Guide PERLOP(1) "=" is the ordinary assignment operator. Assignment operators work as in C. That is, No, they do not, in one special case: #!/usr/bin/perl -w This code, mutatis mutandis, smashes the stack in C. AFAIK, this behaviour is described nowhere in perl documentation. It is also Perl Info
|
From @demerphqOn 20 June 2010 14:11, Kristof Zelechovski <perlbug-followup@perl.org> wrote:
Im not convinced this is relevant. as it is arguable that C doesn't Perl on the other hand has a first class array concept. It does not
"off bounds"?!? Where did you declare the size of the array? You didnt, because you
Mostly this is considered a feature.
I could have sworn it is documented, however poking around the closest I was actually quite shocked about how useless perldata as a resource "Scalars, arrays and hashes are documented more fully in perldata." to which i can only add "not in the version i just read". Absent finding some other perldoc that specifies this I concur that cheers, -- |
The RT System itself - Status changed from 'new' to 'open' |
From @yecril71plOn Pon. 21 Cze. 2010, 03:36:59, demerphq wrote:
If the array has 10 elements at present and I assign to element #11, it |
From @jkeenanOn Sun Jun 20 05:11:12 2010, yecril71pl wrote:
I recommend that this ticket be closed. No patch was ever submitted, Thank you very much. |
From @jkeenanOn Wed Mar 28 18:44:56 2012, jkeenan wrote:
E.g., https://rt-archive.perl.org/perl5/Ticket/Display.html?id=68312 |
@rjbs - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#75888 (status was 'rejected')
Searchable as RT75888$
The text was updated successfully, but these errors were encountered: