in reply to Re: blank lines up to a point
in thread blank lines up to a point
It's one less operation per iteration of the second loop, which would be ever-so-slightly faster on large files (I think).my $line; do { $line = <DATA>; } until ($line=~m/\S/); do { s/\0//g; print $line; } while($line=<DATA>); __DATA__ Some text More text And so one and on...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: blank lines up to a point
by Random_Walk (Prior) on Sep 16, 2004 at 09:13 UTC |