#!/usr/bin/perl -w use strict; #Imported from other file our $x; require 'test2.pl'; print $x; #### #!/usr/bin/perl -w use strict; our $x = "this is it\n"; 1;