Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Removing blank/empty lines

by marquezc329 (Scribe)
on Dec 11, 2012 at 17:37 UTC ( #1008352=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    push @Results, $_ unless ($_ eq "\n")
    
  2. or download this
    push @Results, $_ unless /^\s*$/;
    
  3. or download this
    push @Results, $_ unless /^$/;
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    close $out2;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008352]
help
Chatterbox?
Corion looks at TheDamians new modules. It seems he's written another Perl parser in a regexp and uses it for Keyword::Declare ...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-06-23 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (536 votes). Check out past polls.