perl -e "$_='qwerty'; s/r/print pos(). \"\n\";/e; print $_;" syntax error at -e line 2, near "=" Execution of -e aborted due to compilation errors. #### perl -e "\$_='qwerty'; s/r/print pos(). \"\n\";/e; print \$_;" 3 qwe1ty #### perl -e "\$_='qwerty'; s/r/print pos(). \"\n\";\$&/e; print \$_;" 3 qwerty
## perl -e "\$_='qwerty'; s/r/print pos(). \"\n\";/e; print \$_;" 3 qwe1ty ##
## perl -e "\$_='qwerty'; s/r/print pos(). \"\n\";\$&/e; print \$_;" 3 qwerty