Pugs::Runtime::Match - Match object created by rules
* array
- return the positional matches
* hash
- return both the named and positional (numbered) matches
* str
- return the stringified capture object. If there is no capture, return the matched substring
* scalar
- return the capture object If there is no capture, return the matched substring
* bool
- return whether there was a match
* from
- return the string position (a Pugs::Runtime::StrPos object) where the match started.
Pugs::Runtime::StrPos
* to
- return the string position (a Pugs::Runtime::StrPos object) immediately after where the match finished.
* from_as_codes * to_as_codes
- same as from/to methods, but return perl5 integers.
from
to
* elems
* kv
* keys
* values
* chars
* $$match
- return the capture object
* $match->[$n]
* $match->{$n}
- return the named matches
* $match ? 1 : 0
* data
- return the internal representation as a data structure.
* perl
- return the internal representation as Perl source code.
* yaml
- return the internal representation as YAML. Requires the YAML::Syck module.
YAML::Syck
* dump_hs
- for Pugs interoperability
v6 on CPAN
v6
The Pugs Team <perl6-compiler@perl.org>.
Copyright 2006 by Flavio Soibelmann Glock and others.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Pugs::Compiler::Rule, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pugs::Compiler::Rule
CPAN shell
perl -MCPAN -e shell install Pugs::Compiler::Rule
For more information on module installation, please visit the detailed CPAN module installation guide.