<?xml version="1.0" encoding="windows-1252"?>
<node id="98194" title="Re: a list of functions within a pm" created="2001-07-19 19:09:06" updated="2005-07-21 01:27:44">
<type id="11">
note</type>
<author id="22772">
TheoPetersen</author>
<data>
<field name="doctext">
If your package only contains subs (no package variables), you can just use the package's symbol table:&lt;code&gt;
package foo;
sub one { return 1 };
sub two { return 2 };
sub subs {
    no strict;
    return keys %foo::;
}
&lt;/code&gt;
You'll also get a BEGIN entry (at least, with 5.6.1 I did).</field>
<field name="root_node">
98187</field>
<field name="parent_node">
98187</field>
</data>
</node>
