刘刊 > pantheon > Hermes::Range

Download:
pantheon-0.58.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Hermes::Range - Extends Hermes::KeySet.

SYNOPSIS ^

 use Hermes::Range;

 my $a = Hermes::Range->new()->load( 'foo{00~99},bar{2~9}baz,-/bar/' );

 ## ... see base class for other methods ...

SYMBOLS ^

misc

  '~' : range
  '{' : open
  '}' : close
  '/' : regex

range

  ',' : add
 ',-' : subtract
 ',&' : intersect
 ',^' : symdiff

GRAMMAR ^

TOP

 ^ <expr> $

expr

 <product> [ <range_symbol> [ <match> | <product> ] ]*

product

 [ <range> | <complex> ]+

complex

 '{' <expr> '}'

match

 '/' <string> '/'

range

 <string> [ '~' <string> ]?

string

 <-misc_symbol -range_symbol>+ 

METHODS ^

load( $o )

Loads from a string, or an object supported by the base class namesake.

syntax highlighting: