in reply to Re: Input record separator
in thread Input record separator

Thanks a lot guys - both very valid and helpful suggestions.
Being a newbie, I was under the miconception that chomp ONLY removed newlines.

Replies are listed 'Best First'.
Re^3: Input record separator
by bart (Canon) on Mar 18, 2005 at 10:45 UTC
    No, chomp removes whatever currently is in $/, or what it matches (= multiple newlines) in the only case that actually acts like a regexp: paragraph mode.