Here is how I would do it :-
Pass a list of files you want changed in on the command line - this will edit them in place (the -i flag) saving the old ones with a .bak extension.#!/usr/bin/perl -w -p -i.bak use strict; my $kill = join "|", qw{ wahwah blahblah yadayada }; while (<>) { s/$kill//go; # remove unwanted strings s/^\s+//g; # blank lines }
In reply to Re: elementary hash
by ncw
in thread elementary hash, STDIN questions
by ybiC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |