misc cleanup and add some regex specific examples
This commit is contained in:
parent
6db5bfbe34
commit
9100bd3f05
|
@ -42,13 +42,13 @@ our $VERSION = '0.0.0';
|
|||
# Atleast one of them must be and must not be a empty array.
|
||||
my %args=(
|
||||
ptrs=>[
|
||||
'foo.bar',
|
||||
'foo',
|
||||
],
|
||||
lptrs=>[
|
||||
'a.foo.bar',
|
||||
'bar',
|
||||
],
|
||||
fptrs=>[
|
||||
'b.foo.bar',
|
||||
'f[oa]o',
|
||||
],
|
||||
);
|
||||
|
||||
|
@ -141,10 +141,10 @@ sub new{
|
|||
$self->{ptrs}=$args{ptrs};
|
||||
}
|
||||
if ( defined( $args{lptrs}[0] ) ){
|
||||
$self->{lptrs}=\@{ $args{lptrs} };
|
||||
$self->{lptrs}=$args{lptrs};
|
||||
}
|
||||
if ( defined( $args{fptrs}[0] ) ){
|
||||
$self->{fptrs}=\@{ $args{fptrs} };
|
||||
$self->{fptrs}=$args{fptrs};
|
||||
}
|
||||
|
||||
return $self;
|
||||
|
|
Loading…
Reference in New Issue