Embedding evaluations in Perl regex

前端 未结 6 1865
猫巷女王i
猫巷女王i 2021-01-05 00:05

So i\'m writing a quick perl script that cleans up some HTML code and runs it through a html -> pdf program. I want to lose as little information as possible, so I\'d like t

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 00:37

    I believe your problem is an unescaped /

    If it's not the problem, it certainly is a problem.

    Try this instead, note the \/80

    $file=~s/