if (__FILE__ eq $0) { print __FILE__ . " is being run\n"; } else { print __FILE__ . " is being loaded\n"; }