{ local $/ = '!'; while (<>) { chomp; print "$_\n"; last if 50_000 <= $.; } } print <>; [download]
In reply to Re: Fast Replacement by choroba in thread Fast Replacement by sathishselvam