Parse::Method::SignaturesPerl6 like method signature parser | |
Download |
Parse::Method::Signatures Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Florian Ragwitz
- Publisher web site:
- http://search.cpan.org/~flora/
Parse::Method::Signatures Tags
Parse::Method::Signatures Description
Perl6 like method signature parser Parse::Method::Signatures is a Perl module inspired by Perl6::Signature but streamlined to just support the subset deemed useful for TryCatch and MooseX::Method::Signatures.METHODSThere are only two public methods to this module, both of which should be called as class methods. Both methods accept either a single (non-ref) scalar as the value for the "input" attribute, or normal new style arguments (hash or hash-ref).signature my $sig = Parse::Method::Signatures- >signature( '(Str $foo)' )Attempts to parse the (bracketed) method signature. Returns a value or croaks on error.param my $param = Parse::Method::Signatures- >param( 'Str $foo where { length($_) < 10 }')Attempts to parse the specification for a single parameter. Returns value or croaks on error. Requirements: · Perl
Parse::Method::Signatures Related Software