Would anyone find it useful to have a UNIVERSAL method which reports
on what sybols a given module exports? For example:
package Foo;
@EXPORT = qw(this @that);
@EXPORT_OK = qw($up down);
# this, @that, $up, down
print join ", ", Foo-exports;
With an
Michael G Schwern wrote:
Would anyone find it useful to have a UNIVERSAL method which reports
on what sybols a given module exports? For example:
With an argument, it would be analgous to can():
print "Yes" if Foo-exports('this');
If exports() could take arbitrary symbols, just
Michael G Schwern wrote:
Would anyone find it useful to have a UNIVERSAL method which reports
on what sybols a given module exports?
I don't see any reason why this should be anything other than a module.
A module in the core, if it's that important.
--
John Porter
We're building
On Tue, Sep 19, 2000 at 08:06:58AM -0700, Nathan Wiger wrote:
If exports() could take arbitrary symbols, just like @EXPORT
Yes, that's the idea.
--
Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED]
Just Another Stupid Consultant Perl6 Kwalitee