http://www.perlmonks.org?node_id=247189


in reply to Check a perl script for repeat "my" declarations

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.