(For coursework)
I've got to write a script which counts certain characters within a text file.
I'm looking for hyphens, open and closed brackets, full stops and commas.
I know how to read a file line by line. I was going to write a regular expression to scan each line, and increment a variable by one for each instance of the character found.
Is there a better method for doing this?
In reply to Re: Perl Help
by Slug
in thread Perl Help
by Slug