Skip to main content
7 events
when toggle format what by license comment
Oct 21, 2015 at 6:01 vote accept Brian Fitzpatrick
Sep 20, 2015 at 2:43 history edited cas CC BY-SA 3.0
improved the open() statement
Sep 20, 2015 at 2:34 comment added cas that's why i wrote it - glad you learned something useful. BTW, just like your original script, the lines in 'remove.txt' are treated as regular expressions not as literal text....so you have to be careful if they contain regexp special characters like | or * or . etc. use \ to escape them in 'remove.txt' if you want them to be literals.
Sep 20, 2015 at 2:27 history edited cas CC BY-SA 3.0
forgot to close REMFILE.
Sep 20, 2015 at 2:27 comment added Brian Fitzpatrick Ahh... This was what I set out to do but honestly I don't have enough perl knowledge to write this myself. This really helps me learn so thanks!
Sep 20, 2015 at 2:26 comment added cas BTW, if you want to be able to have (and ignore) '#' comments in 'remove.txt', add s/#.*//; immediately after the chomp; line.
Sep 20, 2015 at 2:22 history answered cas CC BY-SA 3.0