title: How to append LF (0A) character to a file using Path::Tiny?
body: <p>This approach doesn't work - just string "10" is added</p>
  
  <pre><code>use Modern::Perl;
  use Path::Tiny qw( path );
  use DateTime;
  
  my $d1 = DateTime-&gt;new(year =&gt; 2019, month =&gt; 5, day =&gt; 6);
  my @lines_to_add;
  
  $lines_to_add[0]= "1|" . $d1-&gt;dmy('.') . "|";
  
  $,="\n";
  my $filename = "./load";
  path($filename)-&gt;spew_raw(@lines_to_add);
  path($filename)-&gt;append({binmode =&gt; ":raw"}, 10);
  </code></pre>
  
  <p>I'd like to generate some data and then insert them into a table (Informix running on AIX). However, the environment requires the LF character at the end of files to load from. And I'd like to use just Path::Tiny library for that. (I am on Windows using Strawberry Perl)</p>