Fucking traitorous scum

  • nik9000@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    I think it came up more like

    if ($inString =~ /^([ \t]+)(.*)$/ && has_a_cow($2)) {
    

    For me. I dunno. I was never good at perl. I just wanted to hack something together.

    • raspberriesareyummy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I did bigger parsing tools in perl, so I often matched a lot of expressions and needed them all in variables. Not only to save the $N variables, but also for code readability, I would then store the matches in proper variable names