Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Remove blank lines from REGEX output

by Laurent_R (Vicar)
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 exploiting the Monastery: (10)
As of 2014-07-30 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls