-1

help me please

in terminal :

C no longer supported in regex; marked by <-- HERE in m/<host><!\[\ <-- HERE CDATA\[(.*)\]\]\></host>/

code in my file perl

if ($html =~ /<host><!\[\CDATA\[(.*)\]\]\><\/host>/)

What would be the best way of approaching this?

thanks you

1 Answers1

2

\C should be C.

ikegami
  • 367,544
  • 15
  • 269
  • 518
  • This is the answer. There is an extra \ before the `CDATA`. The error message shows the precise spot of the error. – dgw Dec 01 '16 at 11:35