in reply to Re: Reading from multi line file -> CGI.pm
in thread Reading from multi line file -> CGI.pm

Have you noticed that skips the last line of files that don't end with $\? Be very careful about the return value of chomp.

Replies are listed 'Best First'.
Re: Re: Re: Reading from multi line file -> CGI.pm
by virtualsue (Vicar) on Jan 02, 2003 at 22:37 UTC
    I confess to knowing about that particular pitfall and ignoring it. I am a much lazier programmer in Perl than I am in any other language (other than sh/ksh).