|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: hash to count wordsby NetWallah (Monsignor) |
| on Sep 13, 2012 at 14:30 UTC ( #993504=note: print w/ replies, xml ) | Need Help?? |
|
Please use "code" tags correctly, as described in Writeup Formatting Tips. Your regex "$word =~ s/^\w\x\//g;" is invalid. you probably want: Your re-initilazation of "%hash=()" within the loop makes the hash useless. Declare it outside the loop, and add data to it using Later , you can get a list of words found by accessing: Please try to follow davido's excellent advice in response to your previous question on the same subject.
I hope life isn't a big joke, because I don't get it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||