]> www.fi.muni.cz Git - aoc.git/blobdiff - get
Day 25: examining the input
[aoc.git] / get
diff --git a/get b/get
index 13a39df2bfc7fef0fe516323a233ff9fd38c576c..0ed27282bae0c9d080a921ac05130990fd77b368 100755 (executable)
--- a/get
+++ b/get
@@ -46,7 +46,7 @@ if ($sleep) {
 say "Downloading $url to $dest";
 
 my $data = Y::AoC::UA::request($url, { body => 1 });
-Mojo::File->new($dest)->spurt($data);
+Mojo::File->new($dest)->spew($data);
 say grey('==================================================');
 print $data;
 say grey('==================================================');
@@ -59,5 +59,5 @@ $dest = $task.'test.txt';
 
 my $tst = Y::AoC::UA::request($url, { cache_to => "task-$year-$day.html" })
        ->find('main > article > pre > code')->first->all_text;
-Mojo::File->new($dest)->spurt($tst);
+Mojo::File->new($dest)->spew($tst);
 say "\n", grey("also downloaded $dest"), "\n";