The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.