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
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
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 arg
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
UNIVERSAL::import()
=head1 VERSION
Maintainer: Michael G Schwern <[EMAIL PROTECTED]>
Date: 18 Sep 2000
Mailing List: [EMAIL PROTECTED]
Number: 257
Version: 1
Status: Developing
=head1 ABSTRACT