See perldoc -f caller
On Mon, 6 Aug 2001, Rajeev Rumale wrote:
=>Hello Every Body,
=>
=>I need some help.
=>I am using a sub routine to log all the messages to be used for debugging
=>purpose.
=>ie. &debugLogger($debug_message);
=>Since very similare kind of messages are genrated at serveral places, I add
=>the function name.
=>i.e., &debugLogger("inside xxxxx \n $debug_message");
=>
=>I feel it would be better as a prgramming style if sub debugLog is able to
=>find the name of the "calling function" or the name of the function
=>"calling" this sub and genrate the appropriate message.
=>
=>
=>with regards
=>
=>
=>Rajeev Rumale
=>
=>
=>***********************************************************
=> "The human race has one really effective weapon, and that is laughter."
=>***********************************************************
=>
=>
=>
=>--
=>To unsubscribe, e-mail: [EMAIL PROTECTED]
=>For additional commands, e-mail: [EMAIL PROTECTED]
=>
=>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]