I am looking for best, easiest way to do something like:
$var1=\"value\"; bunch of code..... **print allVariablesAndTheirValuesCurrentlyDefined;**
Would this be for anything other than debugging purposes? If not, you may want to familiarize yourself with perl's debugger. Once inside the debugger you can inspect all variables by issuing 'V'.