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
Unused punctuation variables don't interpolate #12213
Comments
From @ikegamiCreated by @ikegami$ perl -E'"abc" =~ /(b)/; say "@+"' $ perl -E'@_ = qw( a b c ); say "@_"' $ perl -E'@. = qw( a b c ); say "@."' $ perl -E'@. = qw( a b c ); say "@{.}"' What's up with #3? - Eric Perl Info
|
From @cpansproutOn Fri Jun 22 12:57:15 2012, ikegami@adaelis.com wrote:
toke.c special-cases certain punct vars. Without thinking about this in Also, there may be people wholly unintentionally relying on this. I -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Fri, Jun 22, 2012 at 4:08 PM, Father Chrysostomos via RT <
That's an argument for a warning, seems to me. ("Possible unintended |
From @ikegamiOn Fri Jun 22 13:08:13 2012, sprout wrote:
Are you saying this is a documentation bug? |
From tchrist@perl.com"Eric Brine" (via RT) <perlbug-followup@perl.org> wrote
What's up with *#4*? How in the world is dot a legal --tom |
From @cpansproutOn Fri Jun 22 14:59:35 2012, ikegami@adaelis.com wrote:
No, but the repercussions of that sort of change worry me. Maybe I just -- Father Chrysostomos |
From @ikegamiOn Fri, Jun 22, 2012 at 7:55 PM, Tom Christiansen <tchrist@perl.com> wrote:
What's up with *#4*? How in the world is dot a legal
This isn't a dereference, this is Perl's interpolation delimiter. That's why C<< "${foo}" >> is allowed with strict on.
Whoa, it's also allowed outside of a literal!
|
From mjp-bitcard@pilcrow.madison.wi.usOn Fri Jun 22 17:51:37 2012, sprout wrote:
How about adding ``(W deprecated, ambiguous) Reserved variable %s will someday interpolate'' If the behavior is later correcte^Wchanged so that unused, reserved variables do interpolate, |
From @cpansproutOn Tue Jul 03 11:43:08 2012, pilcrow wrote:
Neither of those possibilities makes me feel uneasy. -- Father Chrysostomos |
From @jkeenanOn Tue Jul 03 13:31:50 2012, sprout wrote:
ikegami, sprout: Do you have any recommendations (warnings? doc patches?) that can help Thank you very much. |
From @cpansproutOn Mon Jun 17 17:50:17 2013, jkeenan wrote:
If we don’t make any change here, I don’t think we need a doc patch. As for which warning should be added (and whether "@." should -- Father Chrysostomos |
From @ikegamiOn Mon, Jun 17, 2013 at 8:50 PM, James E Keenan via RT <
perlop says: ---BEGIN-- So the current behaviour is covered by the current docs, and it's surely For the curious, the relevant section of toke.c is: /* check for embedded arrays - Eric |
From @rjbsI agree with the assessment: this is documented, the reasoning (avoid bizarre errors) seems -- |
From [Unknown Contact. See original ticket]I agree with the assessment: this is documented, the reasoning (avoid bizarre errors) seems -- |
@rjbs - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#113792 (status was 'rejected')
Searchable as RT113792$
The text was updated successfully, but these errors were encountered: