http://qs321.pair.com?node_id=969760

perl@1983 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, What can be the reason that I get "sh: -c: line 1: syntax error near unexpected token `|'" error while including below in my Perl code?
`echo $cmd | grep '\-\-\-\-'`
Note: $cmd is a string that contains '------' pattern. Thanks in advance.