Re: how do I replace all the spaces in a string with +

2010-02-25 Thread Erik Lewis
Thanks that probably explains my higher than expected ungeocoded rate. Two weeks of playing with perl and I feel like I know less than when I started. On Feb 25, 2010, at 3:31 AM, "Jenda Krynicky" wrote: From: Erik Lewis print "Enter your address\n"; c

Re: Inserting a pause into a loop

2010-02-24 Thread Erik Lewis
Wow, thank you for your assistance. I was working on the assumption that I got something correct in an earlier script, that was incorrect. I've got some more work to do but your explanation helped me understand where I went wrong. On Feb 24, 2010, at 12:38 PM, John W. Krahn wrote: &

Inserting a pause into a loop

2010-02-24 Thread Erik Lewis
Hi, I'm writing a perl script thats goal is to read a delimited file containing a userid and an address to google maps where the address is converted into latitude and longitude. The problem I'm having is with the result I'm printing. Each line is unique via the userid when its printed but I'm

Re: how do I replace all the spaces in a string with +

2010-02-19 Thread Erik Lewis
lit(/,/, $geocode_csv); #break the csv into fields print "$geoarray[2],$geoarray[3]\n"; #print the longitude and latitude exit 0; On Feb 19, 2010, at 4:00 PM, Sergey Matveev wrote: > Greetings, > > On Fri, Feb 19, 2010 at 03:54:27PM -0500, Eri

how do I replace all the spaces in a string with +

2010-02-19 Thread Erik Lewis
I have to changes all the spaces in a string to +'s. Is there an easy way to do this. The length of the string and the number of spaces will always be changing. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl

Re: Problem printing a string value

2010-02-17 Thread Erik Lewis
On Feb 17, 2010, at 2:52 PM, Erik Lewis wrote: > > On Feb 17, 2010, at 1:07 PM, Rob Dixon wrote: > >> Erik Lewis wrote: >>> I've got a large text file that I'm trying to parse some fields from. I'm >>> using substr to pull the first field and t

Re: Problem printing a string value

2010-02-17 Thread Erik Lewis
On Feb 17, 2010, at 1:07 PM, Rob Dixon wrote: > Erik Lewis wrote: >> I've got a large text file that I'm trying to parse some fields from. I'm >> using substr to pull the first field and that is working just fine, now I'm >> trying to print the valu

Problem printing a string value

2010-02-17 Thread Erik Lewis
I've got a large text file that I'm trying to parse some fields from. I'm using substr to pull the first field and that is working just fine, now I'm trying to print the values between 2 irregular delimiters in this case a "^UT" and a "^". I'm matching it with m/ but I don't seem to be able