P is for Practical | |
PerlMonks |
Re: varying length multi-dimensional hashesby fundflow (Chaplain) |
on Oct 04, 2000 at 23:15 UTC ( [id://35312]=note: print w/replies, xml ) | Need Help?? |
Just for curiosity, i'd like to know what is it used for. Also, if you want to count how many times aaaBBBccc appears, why not do $hash{'aaaBBBccc'}++? This has no problems with common prefixes (such as those chromatic pointed out) and needs no complex data structures or pointers.
In Section
Seekers of Perl Wisdom
|
|