title: Perl save file from website to desktop
body: <p>I have this script below, where I want to download a pdf from a URL</p>
  
  <pre><code>#!/usr/bin/perl
  use warnings;
  use strict;
  use LWP::Simple;
  
  my $save = "C:\\Users\\rahard\\Desktop\\";  
  my $file = get 'http://locationoffile';
  </code></pre>
  
  <p>How can I save the pdf to the Desktop? (if I click the URL, it will pront me to save a random name file)</p>
  
  <p>Thank you</p>
  
  <p>/edit some syntax error in $save and edit $file location</p>