If I put s/(?<!(?:href|src)=.{0,40})jpg//g in a perl file, and try to run it, it will give the warning: Variable length lookbehind is experimental in regex; marked by and fail.
But if put in a perl one-liner, it will run successfully, although still be warned of Variable length lookbehind is experimental in regex; marked by.
Is it by current design or maybe I'm using it wrong?
Update: I'm using perl 5.31.3