-
Notifications
You must be signed in to change notification settings - Fork 571
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
Make it a (default) warning to use % between two refs #14890
Comments
From mark@markandruth.co.ukCreated by mark@markandruth.co.ukThis is a bug report for perl from mark@markandruth.co.uk, ----------------------------------------------------------------- use strict; my $a = { foo => 1 }; my $t = { rather surprisingly outputs: $VAR1 = { 'bar' => 121656 }; due to the typo. I find it hard to believe that this is not a warning, Obviously using %{$a} produces a warning but I'm guessing not too many Perl Info
|
From @rgarciaOn 4 September 2015 at 07:48, Mark Zealey <perlbug-followup@perl.org> wrote:
I see why % is a special case here, but with a bit more generality we could I remember an earlier proposal to warn when treating references as strings, I'd personally like to have that kind of warning. The only real use cases I see |
The RT System itself - Status changed from 'new' to 'open' |
From jjuran@gmail.comOn Sep 8, 2015, at 2:25 AM, Rafael Garcia-Suarez <rgs@consttype.org> wrote:
Perhaps `int $hashref` would yield the numeric address without warning. Josh |
From @ysthOn Sep 8, 2015 3:59 AM, "Josh Juran" <jjuran@gmail.com> wrote:
That or explicit 0+. Numeric printf formats should also get a pass. |
From @rgarciaOn 9 September 2015 at 04:33, Yitzchak Scott-Thoennes
Maybe just %p then. |
Migrated from rt.perl.org#125983 (status was 'open')
Searchable as RT125983$
The text was updated successfully, but these errors were encountered: