in reply to Re: system bash return value
in thread system bash return value

One small change:

return 1 if /\Q$keyword/;

See perldoc perlre Quoting Metacharacters

Replies are listed 'Best First'.
Re^3: system bash return value
by Laurent_R (Canon) on Dec 21, 2016 at 18:08 UTC
    Yeah, right, as I said already yesterday (Dec 20, 2016 at 14:49 UTC):
    Depending on the situation, the regex might need an ignore case modifier, a quotemeta of the string used for the regex, etc.