-
Notifications
You must be signed in to change notification settings - Fork 578
used only once vs. uninitialized messages #7831
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
Comments
From @jidanniTrue, one should say |
From @nwc10On Tue, Mar 08, 2005 at 05:25:57PM -0000, Dan Jacobson wrote:
Well, it's totally consistent with how that message gets generates for other $ perl -wle 'print ++$i for 0..1' It's only a warning, and there are other less strange constructions
No. It's clearly documented that ++ does not warn about uninitialized values: C<undef> is always treated as numeric, and in particular is changed Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @tamiasOn Tue, Mar 08, 2005 at 05:25:57PM -0000, Dan Jacobson wrote:
Auto-decrement and auto-increment are intentionally excluded from giving while (<>) { Ronald |
From @smpeters
...or you could use the warning that occurs elsewhere in perlrun.pod. I Inline Patch--- perlrun.pod.orig Tue Mar 8 11:38:44 2005
+++ perlrun.pod Tue Mar 8 11:45:39 2005
@@ -651,7 +651,10 @@
overrides a B<-n> switch.
C<BEGIN> and C<END> blocks may be used to capture control before or after
-the implicit loop, just as in B<awk>.
+the implicit loop, just as in B<awk>. Also, when using this option on
=item B<-P> |
From @ysthOn Tue, Mar 08, 2005 at 05:46:42PM -0000, Steve Peters via RT wrote:
I'd like people to assume that "declaring a variable" normally means In fact, I'd remove the whole thing, in favor of adding something |
From [email protected]Yitzchak Scott-Thoennes <sthoenna@efn.org> wrote
But as Nicholas points out, the problem isn't specific to -n or -p. I don't see why this case needs any extra documentation. Mike Guy |
From @samvDan Jacobson (via RT) wrote:
I guess this seems to contradict sense, because a post-increment is On the other hand, is it worth making yet another exception for the Have you considered trying doing this sort of feedback and commentary Sam. |
From @jidanniD> Have you considered trying doing this sort of feedback and commentary |
From @jidanniFound another: |
From [email protected]On Mar 17, Dan Jacobson said:
That's not unexpected. The lexical $c exists only inside the BEGIN { } -- |
From @jidanniD> That's not unexpected. The lexical $c exists only inside the BEGIN { } OK never mind, whatever. Always use strict, etc. |
From @smpeters
As none of these cases seem to be functioning as documented, ticket closed. |
@smpeters - Status changed from 'open' to 'rejected' |
From @nwc10On Sat, Mar 26, 2005 at 04:00:50AM -0000, Steve Peters via RT wrote:
Isn't there one too many negatives in that sentence? Or one too few: "As none of these cases seem to be functioning as anything other than Bug re-closed. Nicholas Clark |
Migrated from rt.perl.org#34381 (status was 'rejected')
Searchable as RT34381$
The text was updated successfully, but these errors were encountered: