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...
In reply to Re^2: blank lines up to a point
by radiantmatrix
in thread blank lines up to a point
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |