Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Remove blank lines from REGEX output

by Laurent_R (Prior)
on Feb 05, 2014 at 22:28 UTC ( #1073620=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<$IN>) {
         chomp;
    ...
         next unless /^.{3}\d{4}/; # lines of interest have 4 digits from 
    +position 4 to 7
         # now the real processing ...
    }
    
  2. or download this
    while (<$IN>) {
         chomp;
         next if /^#/ or /^\s*$/ or length < $min_useful_length or  /^REM/
    + or not /^.{3}\d{4}/ ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1073620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-07 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls