I could use a little help learning Class:Struct. I want to traverse a directory, visiting only certain subdirectories to find files that need to be documented. The directories I want to visit are:
(There will be other sub-subdirectories added later)bin js js/WATS php php/web_crawler
Referring to perldoc for Class:Struct, I tried to create such a tree at compile time:
The compile-time error I receive points to the use line:use Class::Struct DOCUMENTABLE_PATHS => { bin => { }, js => { WATS => { } }, php => { }, scripts => { web_crawler => { } }, };
I'm guessing it doesn't like the way I'm recursing, but I'm stuck.'HASH(0x24a2fd8)' is not a valid struct element type
Maybe this isn't the best way to solve this problem, but I would like to add Class:Struct to my toolbelt. Thanks for any help.
Chap
In reply to Recursive Class:Struct syntax error? by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |