diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-11-14 14:53:44 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-11-14 14:53:44 -0600 |
commit | 1156452d1223901f0d17c629f7e721f036231f12 (patch) | |
tree | 366d1d9b27b6522d7b91e27723164e6e626a3f46 /lib | |
parent | 9cfc97df6dae7ccac6b79d96ae1a232e7d3bedce (diff) | |
download | package-stash-xs-1156452d1223901f0d17c629f7e721f036231f12.tar.gz package-stash-xs-1156452d1223901f0d17c629f7e721f036231f12.zip |
document get_all_symbols
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Package/Stash.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Package/Stash.pm b/lib/Package/Stash.pm index 5811d7e..f31ebc1 100644 --- a/lib/Package/Stash.pm +++ b/lib/Package/Stash.pm @@ -148,6 +148,13 @@ etc). Note that if the package contained any C<BEGIN> blocks, perl will leave an empty typeglob in the C<BEGIN> slot, so this will show up if no filter is used (and similarly for C<INIT>, C<END>, etc). +=method get_all_symbols $type_filter + +Returns a hashref, keyed by the variable names in the package. If +C<$type_filter> is passed, the hash will contain every variable of that type in +the package as values, otherwise, it will contain the typeglobs corresponding +to the variable names (basically, a clone of the stash). + =head1 BUGS No known bugs. |