Yes it's Cool.
It does occur to me that if you defined the setting of the my clauses in a function (with it's own lexically defined HoA) you could - via recurrsion - quite easily make it handle the lexical scope of the defined fields...or something like that ;0)
Be careful though - you start out just finding my variables and soon you'll find yourself parsing Perl into COBOL or some other silly language.
In reply to Re: Check a perl script for repeat "my" declarations
by awkmonk
in thread Check a perl script for repeat "my" declarations
by graff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |