passing values to function in Ksh

Hi,

I'm trying to work on the script given below

#!/bin/ksh -x
pfile()
{
echo "$1"
}
touch smp19
echo "Hi" > smp19
result=$(pfile $smp19)
echo $result

As highlighted , when i pass $smp19 as parameter ,it does not display the output.However when i try giving "Hi" instead of $smp19, it works.
I'm not able to figure out the problem.

Appreciate ur help.

Thanks,
Sheema

What are you trying to echo with the function? smp19 is a filename not a variable in your script.

Regards

Now i got the problem....Thanks for ur time.