Hi All,

I am writing out an array of text lines to a file.
I just can't help but thinking I am doing it the
hard way.

   unlink( $Leafpadrc );
for @LeafpadrcNew -> $Line { spurt( $Leafpadrc, $Line ~ "\n", :append ); }

If I spurt the array, it converts the array into a
single text line.

The test file looks like this:

        ./.config/leafpad/leafpadrc
        $ cat leafpadrc
        0.8.18.1
        500
        190
        Monospace 12
        1
        1
        0

Your thoughts?

-T

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to