butterfly06
Programmer
Hi,
I would like to call a subroutine from another file in a perl script.
I read a lot of threads on the website. However I am not able to get it running.
For example, my subroutine called getDescription in the description.pl and my main script named show.pl. They are in the same directory.
I am using perl on WindowXP.
In the show.pl script:
require "description.pl";
&getDescription();
---------------
The subroutine:
sub getDescription{
print "Hallo World\n";
1
}
----------------
I got an error message: Internal Server Error
Could someone please help me?
Thanks
I would like to call a subroutine from another file in a perl script.
I read a lot of threads on the website. However I am not able to get it running.
For example, my subroutine called getDescription in the description.pl and my main script named show.pl. They are in the same directory.
I am using perl on WindowXP.
In the show.pl script:
require "description.pl";
&getDescription();
---------------
The subroutine:
sub getDescription{
print "Hallo World\n";
1
}
----------------
I got an error message: Internal Server Error
Could someone please help me?
Thanks