in reply to Re: Forward slashes around argument
in thread Forward slashes around argument

print "type=$type......\'not stop\' detected\n";

You might be pleased to hear that those backslashes before the single-quotes are superfluous. If you omit them your code will become shorter to type and simpler to eye-parse:

print "type=$type......'not stop' detected\n";

HTH.

Replies are listed 'Best First'.
Re^3: Forward slashes around argument
by Marshall (Canon) on Jul 04, 2019 at 04:13 UTC
    You are quite correct.
    My point was: Be careful with syntax like "if this variable doesn't match 'not stop'" - that is a double negative and is hard to understand..

    Perl quoting can become hard to understand. An extraneous \ in this case makes little difference, but thanks for pointing that out.