Recently I posted an answer including source code with a method I regularly used here and on web pages:
My (stackexchange) source (of this source code) is:
<pre> $ cat <<'eof' >duplicate.pl #!/usr/bin/perl </pre>
and the result obtained, is:
$ cat duplicate.pl #!/usr/bin/perl
Which is wrong in term of displayed text and in term of working answer, since the shell script is not working.
I'm not able to present the problem here through the use of
used a lot of
return and spaces to achieve a presentable explanation.
What is the easiest way to insert source code with just one enclosing markup?
What did I do wrong to not being able to get a correct behaviour of a basic