Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ikegami (Pope)
on Feb 02, 2009 at 16:54 UTC ( #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
Node Status?
node history
Node Type: note [id://740744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-26 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls