[Ssh-sftp-perl-users] Calling subroutine from different file
Brought to you by:
dbrobins
|
From: Perl P. <per...@gm...> - 2009-03-11 16:21:46
|
Hi All,
I have coded few scripts as mentioned below. My aim is to call the files and
function without using a extra file ( call.pl as mentioned below) and with
the single click.
I have two files,
file1.pl & file2.pl
In above files, I will call the common subroutine ( say code_send() ) which
is located in fun.pl .
Now my task is to execute the above scripts in one click.
So I thougt to create a file by name
*call.pl*
here in this file I will add two system calls as below.
system("perl file1.pl");
system("perl file2.pl");
I hope there is a better way to do this. If it is then please help me.
Regards,
Mujju
|