Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread Michael G Schwern
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

Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread Nathan Wiger
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

Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread John Porter
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

Re: RFC 257 (v1) UNIVERSAL::import()

2000-09-19 Thread Michael G Schwern
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