in reply to Scope Between global and my

Although there's hundreds of examples of this, the most recent one I've seen is the parsing engine for Text::xSV. You can view the source on CPAN. Look for the function parse and poke around.

For the record, the method demonstrated is lexical scope.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose