in reply to find out the way program was called.

perldoc -f caller is maybe also a good hint.
  • Comment on Re: find out the way program was called.