CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Subroutine name fetch, while running the sub

 



yehuuda
New User

Feb 10, 2009, 5:39 AM

Post #1 of 2 (269 views)
Subroutine name fetch, while running the sub Can't Post

Hello,

Let's say I'm running a sub:

sub test {

# Instead of this remark I need a command that fetches the sub name

print $sub_name

}

What line can replace the comment above? How can I get a name of a sub I run on the fly?



Thank you,

Y


FishMonger
Veteran / Moderator

Feb 10, 2009, 6:37 AM

Post #2 of 2 (267 views)
Re: [yehuuda] Subroutine name fetch, while running the sub [In reply to] Can't Post

perldoc -f caller

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives