Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Strange YAML behavior with lists of qr regexp values

by Anonymous Monk
on Jan 28, 2013 at 18:33 UTC ( [id://1015745]=note: print w/replies, xml ) Need Help??

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$)/
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1015745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found