#!/usr/bin/perl -w use strict; #Imported from other file our $x; require 'test2.pl'; print $x;