Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

find a string and count of its occurence in a text file

by new@perl (Initiate)
on Nov 14, 2007 at 04:30 UTC ( [id://650671]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    _data.txt_
    abc:AB CD:100
    ...
    ghi:GH IJ:102
    abc:AB CD:100
    ghi:GH IJ:103
    
  2. or download this
    my $file='source_data\data.txt';
    open FILE, $file or die "FILE $file NOT FOUND - $!\n";
    ...
            }
    }
    
  3. or download this
    _ouput_
    abc:AB CD:100
    abc:AB CD:100
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 22:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found