Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Remove blank lines from REGEX output

by Laurent_R (Parson)
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 lurking in the Monastery: (14)
As of 2014-10-23 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (124 votes), past polls