Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-12-01 10:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (798 votes), past polls