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
documentation bug in perlfaq5 (To delete lines, ...) #11880
Comments
From sdziegie@stronglg.demon.co.ukThis is a bug report for perl from sdziegie@stronglg.demon.co.uk, Hello, I think that I have found a bug in the perlfaq5 documentation, namely the To delete lines, only print the ones that you want. perl -ni -e 'print unless /d/' inFile.txt ... or ... perl -pi -e 'next unless /d/' inFile.txt I think that the first method using -ni should read: perl -ni -e 'print if /d/' inFile.txt I do not think that the second method can ever work and should be removed continue { at the end. I believe that the 'next' can never bypass this continue block and Here is how I tested this out: cat > inFile.txt.orig << EOT # Method 1 as per perlfaq5 (I believe the documentation is wrong) # Proposed documentation fix for Method 1 (see above) # Method 2 as per perlfaq5 (I believe that this should be struck from the Flags: This perlbug was built using Perl 5.12.1 - Fri May 6 13:30:46 UTC 2011 Site configuration information for perl 5.12.1: Configured by abuild at Fri May 6 13:25:31 UTC 2011. Summary of my perl5 (revision 5 version 12 subversion 1) configuration: Locally applied patches: @INC for perl 5.12.1: Environment for perl 5.12.1: |
From @cpansproutThank you for your report. The perl faq are now maintained separately on CPAN, so I’m forwarding On Sat Jan 21 08:14:05 2012, sdziegie@stronglg.demon.co.uk wrote:
PATH=/home/sdziegie/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/gnome/bin:/usr/lib/qt3/bin:/usr/lib/festival:/usr/local/apache-
-- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'rejected' |
From bug-perlfaq@rt.cpan.org<URL: https://rt.cpan.org/Ticket/Display.html?id=74215 > Thanks for the report. This has been fixed: https://github.com/perl-doc- Please submit pull requests against https://github.com/perl-doc-cats/perlfaq if you have |
Migrated from rt.perl.org#108712 (status was 'rejected')
Searchable as RT108712$
The text was updated successfully, but these errors were encountered: