in reply to Skipping blank lines in a file

I like this:

CROP: while (<FH>) { m#^\s*$# ? next CROP : last CROP; } # Your code here, now that the blank lines are gone

adamsj

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen