You need to prepend the package name to the function name. Is there a package statement in myperlscript.pl? If not, you'll need to write main::subroutinefrom_myperlscript(), if yes, you'll have to substitute that package name for main. You probably want to have another look at perldoc perlmod.