Help for this page

Select Code to Download


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