in reply to Re: Re: Help to slurp records - $/ maybe?
in thread Help to slurp records - $/ maybe?

Well, you're not losing any data (with the $/ trick, that is). The value of the $/ variable is also put at the end of the read 'line'.

If you want to lose that data, use chomp(), it will remove your current line-terminator.

The only actual problem is matching the first line.

-- Joost downtime n. The period during which a system is error-free and immune from user input.

Replies are listed 'Best First'.
Re^2: Help to slurp records - $/ maybe?
by Aristotle (Chancellor) on May 02, 2003 at 14:59 UTC
    Since chomp returns the chomped value you could even do something like
    $next_line = chomp($cur_line) . $next_line;
    But I think that's starting to smell like a really dirty hack.

    Makeshifts last the longest.