in reply to Re: Calling Shell funtion in Perl script
in thread Calling Shell funtion in Perl script

I think the OP is saying he has a function, so it's not a program or an issue of setting the right path. My assumption is that his .profile has a line like:
function pscnt { some_ps_commands_here }
And he wants that invoked .. But some-what related to your suggestion, my suggestion to him is that he simply make pscnt a program (create a pscnt executable script in /usr/bin or somewhere in the PATH) and then call it.