yelbow
asked on
Perl count characters in a file that dont match A-Za-z0-9
Hi,
I have a text file that I want to parse in perl.
From that file I want a count of each of the characters where the character isn't A-Z,a-z or 0-9.
e.g If my file just contained the following line:
I'd like the following output:
How can I process the file to achieve this?
I have a text file that I want to parse in perl.
From that file I want a count of each of the characters where the character isn't A-Z,a-z or 0-9.
e.g If my file just contained the following line:
##Hello, just - checking, this, string.##
I'd like the following output:
, 3
- 1
. 1
# 4
How can I process the file to achieve this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER