Help for this page

Select Code to Download


  1. 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)
    
  2. or download this
    print "it's a hash     - @{[ %hash ]}\n";
    
  3. or download this
    print "method result   - ${ \$obj->method }\n";
    
  4. or download this
    print "a regexp object - ", qr[\b (?: ${\MATCHES} ) \b]x, $/;