Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Strange YAML behavior with lists of qr regexp values

by Anonymous Monk
on Jan 28, 2013 at 18:33 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-01-24 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?