B
bdz
I am running Ubuntu GNU/Linux Edgie.
I have a program that is using a here statement to print a message in
a terminal window.
sub info {
print << "HERE"
\~\~\~\~\~\~\~\~\~\~\~\~\n
Line 1 \n
Line 2 \n
Line 3\n Line 4\nLine 5 \n
\~\~\~\~\~\~\~\~\~\~\~\~\n
HERE
}
The message is printed out in this fashion
~~~~~~~~~~~~
Line 1
Line 2
Line 3
Line 4
Line5
~~~~~~~~~~~~
That is the carriage returns not marked by \n in the script are
printing to the
terminal as carriage returns giving me double spaced lines unless I
group all the lines on one line (as in 3,4,and 5.
I did not have this problem when I was using HERE statements under my
previous (obscure non-windows) operating system. Can anyone illuminate
this matter?
I have a program that is using a here statement to print a message in
a terminal window.
sub info {
print << "HERE"
\~\~\~\~\~\~\~\~\~\~\~\~\n
Line 1 \n
Line 2 \n
Line 3\n Line 4\nLine 5 \n
\~\~\~\~\~\~\~\~\~\~\~\~\n
HERE
}
The message is printed out in this fashion
~~~~~~~~~~~~
Line 1
Line 2
Line 3
Line 4
Line5
~~~~~~~~~~~~
That is the carriage returns not marked by \n in the script are
printing to the
terminal as carriage returns giving me double spaced lines unless I
group all the lines on one line (as in 3,4,and 5.
I did not have this problem when I was using HERE statements under my
previous (obscure non-windows) operating system. Can anyone illuminate
this matter?