in reply to
Re^4: reading file
in thread
reading file
Step by step...
Read in the entire file. See
How can I read in an entire file all at once?
in
perlfaq5
Delete all the newlines. See
Regexp Quote-Like Operators
Count the instances of your string (which you seem able to do)
Comment on
Re^5: reading file
In Section
Seekers of Perl Wisdom