Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Getting file and line number where a subroutine is declared

by ikegami (Patriarch)
on Feb 02, 2009 at 16:54 UTC ( [id://740744]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -le'
       print(exists(&Foo::some_sub)?1:0, defined(&Foo::some_sub)?1:0);
    ...
    10
    11
    foo
    
  2. or download this
    $ perl -le'
       print(exists($Foo::{not_a_sub})?1:0);
    ...
    '
    0
    1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://740744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found