#!/bin/ksh #some shell script code ... .... #perl script begains here #!/usr/bin/perl #some perl script code .. .. .. close(file) exit 0; #end of perl script #continuation of original shell script #this part of shell script will use output from above perl script ... ... ... exit 0; #end of shell script