echo "Hello Dolly" | perl -wlpe "s/l(lo)/\1/g" \1 better written as $1 at -e line 1.