Re: RFC 335 (v1) Class Methods Introspection: what methods does this object support?

[email protected] ((Johan Vromans)) 29 Sep 2000 23:05:56 +0200
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
Piers Cawley <[email protected]> writes:

> Actually, I'd like to see something similar done to Universal::can

  my @methods = $class->can(pattern)

where pattern is a perl pattern matching method names. For a full
list, use 

  $class->can();

or 

  $class->can(qr/./);

-- Johan