beej has asked for the wisdom of the Perl Monks concerning the following question:
The $_ is a line read-in from a text file. The previous examples are not the most elegant way to do this, but nothing seems to work at this point. any advice?if($_ =~ /^\s*$/){...} OR if($_ eq "\n") {...}
Edit Masem 2001-07-13, Title change from "blank-ity blank blank!#$@!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: blank-ity blank blank!#$@!
by davorg (Chancellor) on Jul 13, 2001 at 20:33 UTC | |
|
Re: blank-ity blank blank!#$@!
by adamsj (Hermit) on Jul 13, 2001 at 20:36 UTC | |
|
Re: blank-ity blank blank!#$@!
by Wookie (Beadle) on Jul 13, 2001 at 21:01 UTC |