Hi
I'm a complete newbie at Perl and i was wondering if i can get some help completing an exercise i've come across.
I need to count the punctuation marks from a text file and then output a list of all occurring punctuation marks with its frequency printed next to it.
eg
2 hyphens
3 commas
4 periods
etc
etc
Not even sure where to begin, the exercise does give a hint but i'm not sure how that helps me at all, it says: "you will need to have some way of tying in the punctuation characters to its equivalent English name. Think ASCII and hash. Only those punctuation characters within a standard ASCII character set need to be checked for"
Any help with this would be appreciated.
Thanks
I'm a complete newbie at Perl and i was wondering if i can get some help completing an exercise i've come across.
I need to count the punctuation marks from a text file and then output a list of all occurring punctuation marks with its frequency printed next to it.
eg
2 hyphens
3 commas
4 periods
etc
etc
Not even sure where to begin, the exercise does give a hint but i'm not sure how that helps me at all, it says: "you will need to have some way of tying in the punctuation characters to its equivalent English name. Think ASCII and hash. Only those punctuation characters within a standard ASCII character set need to be checked for"
Any help with this would be appreciated.
Thanks
Comment