why would you want that? 'use Carp' does something like that, but I think it
actually crawls up the stack.
-Original Message-
From: Balint, Jess [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:11 PM
To: '[EMAIL PROTECTED]'
Subject: Sub Name
Hi all. Is there a way
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
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
Oops...I missed the point here...ignore my comments...sorry for wasting
bandwidth...I was answering a completely different question.
- Original Message -
From: Balint, Jess [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 1:11 PM
Subject: Sub Name
Hi all. Is
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
Sure I could. And if I were smart, I could of thought of that. Thank you.
-Original Message-
From: Tanton Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:12 PM
To: Balint, Jess; [EMAIL PROTECTED]
Subject: Re: Sub Name
Can you just make the sub function return