title: reading a file from remote host using perl
body: <p>I am trying to read a file(temp.txt) placed under /root directory on remote host(ubuntu) in same LAN from ubuntu machine.(ssh and ftp are open)
  The perl script is able to connect and a OpenSSH dialog box appears asking for password and then program exists.Please anybody helps..below is my script.</p>
  
  <pre><code>use POSIX qw(strftime);
  use strict;
  use warnings;
  
  
  use File::Remote;
   my $remote = new File::Remote;
  
  # Standard filehandles
  $remote-&gt;open(FILE, "&gt;&gt;X.X.X.X:/root/temp.txt") or die $!;
  print FILE "Here's a line that's added.\n";
  $remote-&gt;close(FILE);
  </code></pre>
  
  <p>i get the below error when executed.</p>
  
  <pre><code>Bareword "FILE" not allowed while "strict subs" in use at /root/Desktop/test.pl line 10.
  Bareword "FILE" not allowed while "strict subs" in use at /root/Desktop/test.pl line 12.
  Execution of /root/Desktop/test.pl aborted due to compilation errors.
  </code></pre>