#!/usr/bin/perl -w BEGIN { unshift (@INC,"/PATH/TO/PERL/MODULE/ON/MACHINE/B"); } require LogReader.pm; <---module on machine B my $log_file= "/a/path/to/remote/log/file/on/machine/c"; open(fp, $log_file) or die ("could not open the file"); # line no 10 my $sul = SuiteLog->new( { FILE => fp } ); <---Suitelog is a another module defiend in perl module on machine B which does processing on the content of test_log .