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
perlop qw add how to do comments #7569
Comments
From @jidanni$ man perlop OK, well if these are so common mistakes, remedies should be I mean otherwise the only alternative you imply is dropping comments. The user wants to do %table=qw( And perhaps even have the warnings tell the user to see perlop. |
From @nwc10On Sun, Oct 31, 2004 at 07:14:07AM -0000, Dan Jacobson wrote:
I don't think that any of this is necessary. perlop is attempting to be The following is not a personal criticism, but a general observation: The perl documentation is already too large. Nearly every change anyone Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @ysthOn Sun, Oct 31, 2004 at 07:14:07AM -0000, Dan Jacobson wrote:
The warning is given whether the comma is superfluous or not There is no "best way" to do comments in a quoted string. Are the $ perl -e'use diagnostics; 0&&qw/ # /' You probably wrote something like this: @list = qw( when you should have written this: @list = qw( If you really want comments, build your list the @list = ( $ perl -e'use diagnostics; 0&&qw/ , /' You probably wrote something like this: qw! a, b, c !; which puts literal commas into some of the list items. Write it without qw! a b c !; (The 0&& suppresses a void context warning.) |
@rgs - Status changed from 'open' to 'rejected' |
From @jidanniD> remedies suggested in the perldiag entries for the warnings sufficient? Well, OK, but if the solution were mentioned on perlop, it wouldn't Also there is the case when qw would be great for 10000 lines, except < The perl documentation is already too large. I'm just pointing out what dark areas new users encounter when |
From @schwernOn Mon, Nov 01, 2004 at 09:05:56AM +0800, Dan Jacobson wrote:
The common mode of failure is for a user to put comments and commas into a Besides, the "solutions" in perldiag really amount to "don't do that" which,
If you're using qw for 10,000 lines of data you're in more trouble than -- |
From @jidanniD> If you're using qw for 10,000 lines of data you're in more trouble than Hmm, then perlop should mention that. Otherwise we might just think I'll got a mail telling me the perl-documentation list is a better |
Migrated from rt.perl.org#32233 (status was 'rejected')
Searchable as RT32233$
The text was updated successfully, but these errors were encountered: