title: How to download .zip file from web URL using Perl Script?
body: <p>I want to download a .zip file which is available at URL <a href="http://www.nseindia.com/content/equities/cmbhav.htm" rel="nofollow">http://www.nseindia.com/content/equities/cmbhav.htm</a> by clicking on "Download file in csv format".</p>
  
  <p>If right click on "Download file in csv format" and select copy link location then the URL pattern will be like
  <a href="http://www.nseindia.com/content/historical/EQUITIES/2012/MAR/cm23MAR2012bhav.csv.zip" rel="nofollow">http://www.nseindia.com/content/historical/EQUITIES/2012/MAR/cm23MAR2012bhav.csv.zip</a>.</p>
  
  <p>I want to write a Perl Script that will download the .zip file from the URL. </p>
  
  <p>The below code is not working </p>
  
  <pre><code>#!/usr/bin/perl
  use warnings;
  use strict;
  use LWP::Simple;
  
  my $url = 'http://www.nseindia.com/content/historical/EQUITIES/2012/MAR' ;
  my $file = 'cm23MAR2012bhav.csv.zip'    ;
  getstore($url, $file) ;
  </code></pre>