Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: f347ee8958f6c6bbb4a7f13dbe951f1ac0f14efb https://github.com/Perl/perl5/commit/f347ee8958f6c6bbb4a7f13dbe951f1ac0f14efb Author: Philippe Bruhat (BooK) <b...@cpan.org> Date: 2025-08-18 (Mon, 18 Aug 2025)
Changed paths: M pod/perldiag.pod M t/lib/warnings/toke M toke.c Log Message: ----------- add a new warning against using \ in qw() I've seen AI-generated code try to use qw() to create lists containing strings with embedded whitespace using qw and \ to "protect" the whitespace. Things like: my @list = qw( foo bar\ baz ); Just like occurences of ',' and '#', I believe this should warn. Note that the warning will only be emitted when the \ is followed by actual whitespace, so code like the following (from lib/App/Cpan.pm) will not warn: my $epic_fail_words = join '|', qw( Error stop(?:ping)? problems force not unsupported fail(?:ed)? Cannot\s+install ); Commit: 052a79a49781f2fc0b9391ca1938633cbf5120ea https://github.com/Perl/perl5/commit/052a79a49781f2fc0b9391ca1938633cbf5120ea Author: Philippe Bruhat (BooK) <b...@cpan.org> Date: 2025-08-18 (Mon, 18 Aug 2025) Changed paths: M pod/perldelta.pod Log Message: ----------- add perldelta entry for the new qw warning Compare: https://github.com/Perl/perl5/compare/dd99ef826bf8...052a79a49781 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications