in reply to use variable from main file in a 'require'd file?
t57:
#!/usr/bin/perl -w use strict; our %CONFIG = (key => 'value'); require 't57.pl'; [download]
t57.pl:
warn "\$CONFIG{key}: $CONFIG{key}\n"; 1; [download]