GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PUGS::RUNTIME::MATCH (3)

.ds Aq ’

NAME

Pugs::Runtime::Match - Match object created by rules

CONTENTS

METHODS

* 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.

* 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.

‘‘Hash’’ methods

* elems

* kv

* keys

* values

‘‘Str’’ methods

* chars

OVERLOADS

* $$match

- return the capture object

* $match->[$n]

- return the positional matches

* $match->{$n}

- return the named matches

* $match ? 1 : 0

- return whether there was a match

Dumper methods

* 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.

* dump_hs

- for Pugs interoperability

SEE ALSO

v6 on CPAN

AUTHORS

The Pugs Team <perl6-compiler@perl.org>.

COPYRIGHT

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>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PUGS::RUNTIME::MATCH (3) 2008-07-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.