http://www.perlmonks.org?node_id=372084


in reply to Re: Getting Matching Items From An Array
in thread Getting Matching Items From An Array

rob_au,
Instead of adding it, I have updated the node to remove exists in that section as it was not necessary. It did not occur to me that novices might see exists as improper with an array and total miss using a string as an index.

While your point is well taken, I believe "Autovivication Pitfalls and How To Avoid Them" deserves to be a tutorial all to itself.

Cheers - L~R

  • Comment on Re^2: Getting Matching Items From An Array