in reply to extract number of times a value appears in an array

If this is a homework assignment, you really should read this node first.

And if it's not a homework assignment, it would be a good idea to provide some code first, to show how you've attempted to go about it solving it.  (But why are you trying to do this in Perl in the first place, if you have not encountered hashes before??)

In any event, try reading up on hashes first.  A good start might be perlintro.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re: extract number of times a value appears in an array