Perl Monk, Perl Meditation | |
PerlMonks |
Re: Recursive Class:Struct syntax error?by 1nickt (Canon) |
on Dec 04, 2018 at 01:46 UTC ( [id://1226693]=note: print w/replies, xml ) | Need Help?? |
Hi, (I waited until you reached your own conclusions about Class::Struct ...) I recommend Path::Iterator::Rule for this kind of work. Here I am looking at the shebang, mostly because it's cool, but you can of course use file extension, or file contents, or a custom routine, to find the files, and additionally you can pass each one found to a callback using the visitor option. The chained methods allow the syntax to be rather concise.
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|