Grep - YAML file in Perl

Are there modules in Perl that can grep an arbitrary hierarchy in a yaml file - just like ygrep in python? Or code that can do this? I tried googling but did not find any resources / pointers for it. I tried with a few hours without much luck.

+4
source share
1 answer

LoadFile returns a hash link.

 my $href = YAML::LoadFile("file.yaml"); 

Check CPAN for any module for moving deep data structures , e.g.

+6
source

Source: https://habr.com/ru/post/1488365/


All Articles