in reply to
Backwards searching
I think that this problem could be solved recursively. Load myfile into $_. Then s/(^.*)(searchterm{1}?*$)/$1/s until all occurences of /searchterm/ are gone.
Comment on
Re: Backwards searching
In Section
Seekers of Perl Wisdom