in reply to Cannot seem to remove empty/blank lines

The problem is, you chomp the newline off, then print the cleaned string with a newline at the end. it works if you change

print "$nclean\n";

to

if ( $nclean ) { print "$nclean\n"; }
Paris Sinclair    |    4a75737420416e6f74686572
pariss@efn.org    |    205065726c204861636b6572
I wear my Geek Code on my finger.

Replies are listed 'Best First'.
RE: Re: Cannot seem to remove empty/blank lines
by cgaff (Initiate) on Jun 03, 2000 at 11:06 UTC
    Thank you all, I understand what I was doing wrong now. It makes sense after you know how it works.