Hi,
Thanks for your reply, i will try your approach and let you know the results. $command is a normal perl function , it might do anything as you defined it can just print the passed arguments as well.
In my case $command is a value got by parsing an xml which is a name of a function..
$command = launchapp;
launchapp is the function name which needs to be triggered.