in reply to Debugging help required

use vars qw/$admin_dir $several $other $global $variables/; But remember that you should rethink your design if you find subroutines changing those after initial configuration.

After Compline,
Zaxo