in reply to Devel::GetSymbols (fka Symbol::List)
What I'd like to see in it too, was to have the possibility to further restrict contents of the result by a regular expression.
I know, you could do something like:
to filter out subs beginning with '_', but as you do a grep in symbols() already, it would be more convenient to pass a regex.@EXPORT_OK = grep /^[^_]/, Symbol::List::symbols('CODE');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Symbol::List
by Juerd (Abbot) on Jan 23, 2002 at 18:06 UTC |