From 1156452d1223901f0d17c629f7e721f036231f12 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 14 Nov 2010 14:53:44 -0600 Subject: document get_all_symbols --- lib/Package/Stash.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 blocks, perl will leave an empty typeglob in the C slot, so this will show up if no filter is used (and similarly for C, C, 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. -- cgit v1.2.3-54-g00ecf