Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    
    my $yaml = LoadFile( 'test-re.yaml' );
    print Dumper($yaml->{patterns}), "\n";
    
  2. or download this
    --- 
    patterns: 
      - !!perl/regexp (?^i:^foo.*bar.*baz)
      - !!perl/regexp ^quux$
    
  3. or download this
    $VAR1 = [
              qr/(?^:(?^i:^foo.*bar.*baz))/,
              qr/(?^:^quux$)/
            ];
    
  4. or download this
    $VAR1 = [
              qr/(?^ui:^foo.*bar.*baz)/,
              qr/(?^u:^quux$)/
            ];