This is a chunk of the scrip I use to FTP a csv file..
The problem I am having is the fields 19 & 30.
In a couple of the records there are quotes. (ie. 18" wheels)
How can I have the script escape it where it (ie. 18\" wheels)?
Thanks for any help!
----------------------
The problem I am having is the fields 19 & 30.
In a couple of the records there are quotes. (ie. 18" wheels)
How can I have the script escape it where it (ie. 18\" wheels)?
Thanks for any help!
----------------------
Code:
#!/usr/bin/perl -- #use LWP; use CGI::Carp qw(fatalsToBrowser); use strict; use LWP::Simple; use Net::FTP; print "Content-type: text/html\n\n"; print "Fetching Data<BR>\n"; my $cmd="http://www.websitesfordealers.com/cgi-bin/data.pl?data.year=between+1983+and+2030&_layout=dodah&_cgifunction=Search&data.vin=%21%21&data.block=%21&data.make=ACURA+or+AUDI+or+BMW+or+BUICK+or+CADILLAC+or+CHEVROLET+or+CHRYSLER+or+DAEWOO+or+DAIHATSU+or+DATSUN+or+DODGE+or+EAGLE+or+FERRARI+or+FORD+or+GEO+or+GMC+or+HONDA+or+HUMMER+or+HYUNDAI+or+INFINITI+or+ISUZU+or+JAGUAR+or+JEEP+or+KIA+or+LANDROVER+or+LEXUS+or+LINCOLN+or+MAZDA+or+MERCEDES+or+MERCURY+or+MERKUR+or+MINI+or+MITSUBISHI+or+NISSAN+or+OLDSMOBILE+or+PLYMOUTH+or+PONTIAC+or+PORSCHE+or+SAAB+or+SATURN+or+SCION+or+SUBARU+or+SUZUKI+or+TOYOTA+or+VOLKSWAGEN+or+VOLVO"; my $doc=get $cmd; $doc =~ s/ImageURLs/ImageURLs\n/; $doc =~ s/\r/\n/g;
Comment