Results of a match
- Regex pattern matches return a "Match object"
- In Perl 6, this goes into a lexically scoped $/ variable
- The boolean value of $/ is true if pattern matched
- The string value of $/ is the substring that was matched
Parrot | Perl 6 regexes | #13 |
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |