Can you just make the sub function return an array with the first element being its name and the second being the data? ----- Original Message ----- From: "Balint, Jess" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 2:09 PM Subject: RE: Sub Name
> Well, I am running a bunch of queries. The actual query text is returned > from a subfunction that is somehow descriptive of what the query actually > is. I wish to have the function name inserted into an e-mail subject line. > If I had the name of the function, I could just loop through them all. > > Thanks again. > > -----Original Message----- > From: Wagner, David --- Senior Programmer Analyst --- WGO > [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 23, 2002 1:35 PM > To: 'Jenda Krynicky'; '[EMAIL PROTECTED]' > Subject: RE: Sub Name > > > Are you trying to find out who called you or who you are? Perl has > caller which gives info about who I am , who called, etc. > > What are you trying to do? > Wags ;) > > -----Original Message----- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 23, 2002 10:32 > To: '[EMAIL PROTECTED]' > Subject: Re: Sub Name > > > From: "Balint, Jess" <[EMAIL PROTECTED]> > > > Hi all. Is there a way to get a subroutine name into a string? Thanks. > > Jess > > > > sub jess{ } > > > > sub name{ > > $subref = shift; > > print $subref; > > } > > > > name( \&jess ); > > Well, yes. You could search through the namespaces. > > But it's gonna be slow. > > Why do you want that? > > Jenda > =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== > There is a reason for living. There must be. I've seen it somewhere. > It's just that in the mess on my table ... and in my brain > I can't find it. > --- me > > > -- > 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]