in reply to Re Replacing duplicate stringin thread Replacing duplicate string
{ local undef $/; while (<MYINPUTFILE>) { ... } } [download]