- or download this
use Data::Dumper;
...
$VAR1 = {
'REGEXP' => qr/(?-xism:^something$)/
};
- or download this
$myhash{REGEXP} = qr/^something$/;
print $myhash{REGEXP}; # --> (?-xism:^something$)
...
print $myhash{REGEXP}; # --> (?-xism:(?-xism:(?-xism:^something$)))
...
- or download this
---
REGEXP: !!perl/regexp (?-xism:^something$)
- or download this
package YAML::Type::regexp;
...
...
bless $qr, $class if length $class;
return $qr;
}
- or download this
REGEXP: !!perl/regexp (?i-xsm:^something$)
|
v
qr{^something$}i