in reply to Re^2: sh: -c: line 1: syntax error near unexpected token `|'
in thread sh: -c: line 1: syntax error near unexpected token `|'
or use somthing like q()$cmd = "'------------- Hello World ------------'";
my $result = `echo -- $cmd | grep -- '\-\-\-\-'`;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: sh: -c: line 1: syntax error near unexpected token `|'
by Anonymous Monk on May 10, 2012 at 13:54 UTC |