I'm looking to have the ability to dump all currently defined variables in a perl script by calling a function or subroutine. I know I could write a subroutine to list the variables I was interested in but I thought that maybe there was a way to do it automatically. It would be nice to be able to reuse the code in other script without needing to modify it everytime a variable is added or deleted.