RE: Sub Name

2002-09-23 Thread Nikola Janceski
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

Re: Sub Name

2002-09-23 Thread Jenda Krynicky
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

RE: Sub Name

2002-09-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Re: Sub Name

2002-09-23 Thread Tanton Gibbs
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

Re: Sub Name

2002-09-23 Thread Tanton Gibbs
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

RE: Sub Name

2002-09-23 Thread Balint, Jess
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