in reply to Re: Perl Issue - File downloaded in windows has a Control M character in it??
in thread Perl Issue - File downloaded in windows has a Control M character in it??
use Storable; use LWP::Simple; #--------------------------------------------------------------------- +--------- # Define Variables for this process #--------------------------------------------------------------------- +--------- # File Down load path is used as a varible: $DownloadFilePath=<Path na +me> $DownloadFilePath="D:\\LIPAPSM\\DSSourcefiles\\"; #===================================================================== +========= # START OF PROGRAM #===================================================================== +========= $one_day = 60*60*24 ; my($day, $month, $year) = (localtime time+$one_day)[3,4,5]; $month = sprintf '%02d', $month+1; $day = sprintf '%02d', $day; $Datetotal=($year+1900).$month.$day; $filedate=join "", $Datetotal."damlbmp_zone.csv"; $url = join "",'http://mis.nyiso.com/public/csv/damlbmp/'.$filedat +e; $filename=join "",$DownloadFilePath.$filedate; mirror($url, $filename)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Issue - File downloaded in windows has a Control M character in it??
by hbm (Hermit) on Oct 24, 2012 at 21:24 UTC | |
|
Re^3: Perl Issue - File downloaded in windows has a Control M character in it??
by fishmonger (Chaplain) on Oct 24, 2012 at 21:00 UTC | |
by venky144 (Initiate) on Oct 24, 2012 at 21:32 UTC | |
by venky144 (Initiate) on Oct 25, 2012 at 20:28 UTC |