OO search in objectsby Hossein (Acolyte)
|on Aug 14, 2013 at 11:49 UTC||Need Help??|
Hossein has asked for the
wisdom of the Perl Monks concerning the following question:
I have a set of objects in an array. @obj_fw
When I search for an object, I run through the list @obj_fw, and check if f.ex. $obj_fw[$index]->name eq search-string.
I wonder if there's a better way of doing it? Like a nice method in the package. In this case MY::FW (FW.pm)
Thank you :)