On Oct 22, 2023, at 06:02, ToddAndMargo via perl6-users <perl6-us...@perl.org> wrote:

spurt "$TestFile", "Old File Found\n";
spurt "$TestFile", "New File Opened\n";

On 11/5/23 12:08, William Michels via perl6-users wrote:
> Won't adding a `\n` newline to the `spurt()` call eventually cause
> problems?
>
> What happens if you omit the `\n` below?
>
> Best, Bill.
>
>

Hi Bill,

\n just adds a line feed to the file.  Without
it, when I cat the file in my shell, the prompt
for the next command comes up at the end of the
file, rather than on the next line.

-T

Reply via email to