in reply to Using require

Use 'our'.
Let's say I have my "config" with a variable:

our $option = 1;
1; #must end with true return
And my main code is like this: #!/usr/bin/perl -w use strict; our $option require "./config.pl" print "Option = 1" if $option != 0;