Consider the following Perl one-liner:
perl -e '$x; $y;'
I'm executing this command in bash and I'd like to insert a newline (
\n) between the ; and
$y. I'd like to know how to do this in two similar but slightly different ways:
How can I insert the newline in that position by pressing some meta key sequence to insert the newline?
How can I insert the newline in that position by typing some non-meta character sequence? (eg,
In both situations I want the Perl interpreter to see an actual newline, like this: