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 like @EXPORT, for example: if ( Foo->exports('$DEBUG') ) { $DEBUG = 1; } else { $Foo::DEBUG = 1; } Then I could see it being a more useful addition. -Nate
- RFC 257 (v1) UNIVERSAL::import() Perl6 RFC Librarian
- Re: RFC 257 (v1) UNIVERSAL::import() Michael G Schwern
- Re: RFC 257 (v1) UNIVERSAL::import() Nathan Wiger
- Re: RFC 257 (v1) UNIVERSAL::import() Michael G Schwern
- Re: RFC 257 (v1) UNIVERSAL::import() John Porter
- Re: RFC 257 (v1) UNIVERSAL::import() Michael G Schwern