In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeff 'Japhy' Pinyan) writes: >On Nov 22, sharan said: > >>Is there any special variable which contains list of variable and sub >>routines in current scope. I would like to know dynamically if any and >>release them, if i don't need them. > >You can look through the %main:: hash to see the variables that exist in >the main:: package. You don't need to "release" them, though. You should >use properly scoped lexicals instead of globals.
And those lexicals aren't visible in %main::. You need the PadWalker module from CPAN to list them. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]