Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: 'extract' subs from source code

by chromatic (Archbishop)
on Oct 24, 2012 at 16:36 UTC ( #1000667=note: print w/ replies, xml ) Need Help??


in reply to Re: 'extract' subs from source code
in thread 'extract' subs from source code

Since sub names are in the "main" namespace...

They probably are, but they might not be.

... without actually executing the program?

use or BEGIN or other metaprogramming mechanisms may modify what's available. You'll probably be fine with most scripts, but that's no guarantee.


Comment on Re^2: 'extract' subs from source code
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-12-28 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (183 votes), past polls