in reply to searching complex data structures
Well, one thing that would be helpful to know is, after you search this complex data structure for the specific string, do you just need to know if it is present SOMEWHERE, or do you then need a reference to where in the structure it's stored?
If you just need to know if it occurs somewhere, you could use Data::Dumper to stringify your data structure and then search to see if your search string is present within the stringified data structure. However, if you need to know where in the structure the data is, this solution is less than perfect. Additionally, this could be a big performance hog if your data structure is very large.
Just an idea, it might work.
|