in reply to Simple Syntax Error? Can't Find?
>perl -e"my $x = 1 if (foo()) { bar() }" syntax error at -e line 1, near ") {" Execution of -e aborted due to compilation errors. >perl -e"my $x = 1 for (foo()) { bar() }" syntax error at -e line 1, near ") {" Execution of -e aborted due to compilation errors.
|
|---|