Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: How to find empty in emptyby petral (Curate) |
on Nov 19, 2002 at 15:44 UTC ( [id://214155]=note: print w/replies, xml ) | Need Help?? |
Um, '+' means at least one (and you don't need the box):
! /^\s*$/
Anyway, it's even easier just to check for a non-space:
/\S/
But, as long as we're at it, why not accept only well-formed lines:
  p
In Section
Seekers of Perl Wisdom
|
|