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

Reply via email to