Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Named capture backreferences cannot be used in character classes?

by davido (Archbishop)
on Sep 26, 2013 at 17:05 UTC ( #1055865=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    m/(?(?=Z|Y)[Z]|[Y])/
    
  2. or download this
    (?(DEFINE)
        (?<NAME_PAT>....)
    )
    
  3. or download this
    print "Yes"
      if $string =~ m/(?(?=')'[^']|)
                      (?(?=")"[^"]|)/x;
    
  4. or download this
    m/(?:'[^']|"[^"])/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055865]
help
Chatterbox?
Corion idly wonders if there is a way to produce ordered .yml files. I want to accept YAML for a configuration file format, but I also want to generate (for debugging/start) a sample configuration file from the current configuration.
[Corion]: Ideally, that configuration file would have some order of the keys, but I'm not sure whether/how YAML supports ordered output.
[Corion]: Basically I have this metadata and generating a purposeful example is much better if the output is ordered in the same way the documentation is ordered

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-01-16 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (149 votes). Check out past polls.