Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: caller doesn't work in signal handler Message-ID: <128365@uunet.UU.NET> Date: 11 Apr 91 20:47:11 GMT References: <1991Apr10.233240.29339@uvaarpa.Virginia.EDU> Organization: UUNET Communications Services, Falls Church, VA Lines: 13 In <1991Apr10.233240.29339@uvaarpa.Virginia.EDU> worley@compass.com writes: >I was hoping to use the interval timer to do some crude profiling of >my Perl program, but I discovered that the call forced by a signal >does not set whatever it is that 'caller' reads. Can this be fixed? Perhaps. But you may want to add a bit of extra code yourself, so that you can profile *sections* within a subroutine. Add push(@where,"here") and pop(@where) to your code at entrance/exit of functions or interesting pieces of code. -- [rbj@uunet 1] stty sane unknown mode: sane