"be consistent" | |
PerlMonks |
Re: Hash to count charactersby nvivek (Vicar) |
on Aug 12, 2010 at 03:27 UTC ( [id://854564]=note: print w/replies, xml ) | Need Help?? |
Your first attempt is correct but you need to change the @line_char to @line_words because you split the line and store all the characters into @line_words array only @line_char.One more suggestion whenever you do program, use the following in your code.
Both the modules help you to correct the problems in your program.If you use any scalar, array or hash without declaration,it will warn you.
In Section
Seekers of Perl Wisdom
|
|