in reply to How to iterate over nested hash and get all paths?
Also, please see the Perl Data Structures Cookbook (perldsc), although I have the strong feeling this resource has been recommended to this monk before.
How can I do it without grep?
Why do you want to exclude grep from your toolbox? Is this a homework assignment?
Give a man a fish: <%-{-{-{-<
|
|---|