Subject: | PPI::Node::find returning empty string? |
This is borderline wishlist, but...
Although I can see the virtue in having PPI::Node::find's value being
a valid boolean when used in such a context, it was not my first
expectation. I had to look up the function documentation to find out
why it was returning an empty string.
My expectation was that it would instead return a reference to the
empty list if there were no results matching the search criteria; I
think that would be a more common intuitive expectation.
I realize it probably isn't something that can be changed at this
point, and that you might not want to anyway, but that it was at least
worth speaking up about.