Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Perl text processingby wjw (Priest) |
on Jun 09, 2014 at 15:31 UTC ( [id://1089287]=note: print w/replies, xml ) | Need Help?? |
Start with this: You can do this assignment with nothing but the basic Perl functionality. Run the program using the -d (debugger) and learn to use that tool to examine and learn what those hashes and any other variables look like. It is a quick tool to learn to use if just doing basic examining for self-enlightenment. PerlDoc is your friend. Tutorials like perldsc, perlop, perlfunc will all help you solve this pretty quickly, including example code much of the time. Hope you find this helpful... Update: Note that by using a hash, you eliminate the possibility of there being duplicate categories, simplifying and possibly making the effort more efficient. Restated the increment step for clarity(I hope) ...the majority is always wrong, and always the last to know about it... Insanity: Doing the same thing over and over again and expecting different results... A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct
In Section
Seekers of Perl Wisdom
|
|