Grep a YAML file in Perl

Wil*_*ess 4 perl grep yaml path hierarchy

Are there any modules in Perl which can grep an arbitrary hierarchy in a yaml file - just like ygrep in python? Or code which can do that? I tried googling but didn't find any resources/pointers for it. I have been trying since a few hours without much luck.