Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Code Reviews -- List Identifiers

by hdb (Prior)
on Nov 22, 2013 at 13:06 UTC ( #1063932=note: print w/ replies, xml ) Need Help??

in reply to Code Reviews -- List Identifiers

Something simple like this could be a start (with filenames given on the command line):

use strict; use warnings; my %identifiers; undef $/; undef @identifiers{ /((?:sub\s+|[\$@%])[a-zA-Z_][a-zA-Z_0-9]*)/g } whi +le <>; print join "\n", keys %identifiers;

but there are more things to find, like module names etc.

Comment on Re: Code Reviews -- List Identifiers
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-31 12:27 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (277 votes), past polls