Um, solutions were provided. If you wish to implement them using perl, you have BNF grammar, use various cpan bnf modules ... or examine how the pure-ruby-parsers do it, and rewrite in perl
Reinventing the wheel is work
In reply to Re^5: Extracting the Methods in a Ruby file
by Anonymous Monk
in thread Extracting the Methods in a Ruby file
by thillai_selvan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |