Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Algorithm To Select Lines Based On Attributes

by mr_mischief (Monsignor)
on Jan 15, 2009 at 17:31 UTC ( [id://736604]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      print "total defects so far: $total_defects\n";
    }
    close $df;
    
  2. or download this
    DEFECTID ATTR1 ATTR7 ATTR4
    DEFECTID ATTR3 !ATTR1
    ...
    DEFECTID ATTR4
    
    DEFECTID ATTR3
    
  3. or download this
    defects found this line: ATTR1, ATTR7
    total defects so far: 2
    ...
    total defects so far: 4
    defects found this line: ATTR3
    total defects so far: 5
    
  4. or download this
    use strict;
    use warnings;
    ...
    
    print "Found $total_defects total defects.\nDefect breakdown follows:\
    +n";
    print $_ . ":\t\t" . $defect_subtotals{$_} . "\n" for sort keys %defec
    +t_subtotals;
    
  5. or download this
    Found 5 total defects.
    Defect breakdown follows:
    ATTR1:          1
    ATTR3:          3
    ATTR7:          1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found