- or download this
use constant MATCHES => join '|' => qw/ a list of words /;
...
method result - something complex here
a regexp object - (?x-ism:\b (?: a|list|of|words ) \b)
- or download this
print "it's a hash - @{[ %hash ]}\n";
- or download this
print "method result - ${ \$obj->method }\n";
- or download this
print "a regexp object - ", qr[\b (?: ${\MATCHES} ) \b]x, $/;