Hacker News new | past | comments | ask | show | jobs | submit login

For regex, named capture groups can also be used so one group per line isn't as required:

    $_ =~ m/^                                     # anchor at beginning of line
            The\ quick\ (?<adjective>\w+)\ fox    # fox adjective
            \ (?<verb>\w+)\ over                  # fox action verb
            ...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: