Can't call method "login" on an undefined value at -e line 1
<p>This is the error I'm getting, I copied and pasted a direct set of commands from a website called ncbi that were</p>

<pre><code>cd ~
  perl -MNet::FTP -e \
    '$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive =&gt; 1); $ftp-&gt;login;
     $ftp-&gt;binary; $ftp-&gt;get("/entrez/entrezdirect/edirect.zip");'
  unzip -u -q edirect.zip
  rm edirect.zip
  export PATH=$PATH:$HOME/edirect
  ./edirect/setup.sh
</code></pre>

<p>I have no idea what to look for because I'm unfamiliar with these commands</p>

<p>Edit
So some things were fixed by someone from the website but I am still trying to type </p>

<pre><code>'perl -MNet::FTP -e '$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive =&gt; 1); $ftp-&gt;login; $ftp-&gt;binary; $ftp-&gt;get("/entrez/entrezezdirect/edirect.zip");' 
</code></pre>

<p>and nothing is happening it's like if I were just to type "cat" because just a blank line happens</p>