You want to use the 'n' flag in embed.pl if you don't want the pTHX argument for a function prototype. Sarathy gsar@ActiveState.com