Re: Filter Quotes

2006-03-05 Thread David Moreno Garza
On 18:30 Thu 02 Mar 2006, maillists wrote: > $Values->{text_field} =~ s/"/"/; Try adding a `g' on the end of the regexp: $Values->{text_field} =~ s/"/"/g; Cheers, -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ <[EMAIL PROTECTED]> | GPG: C

Re: multiple system commands

2006-03-05 Thread JupiterHost.Net
Saurabh Singhvi wrote: thanks for all the help!!! I am gonna try out all of them and settle with the best :). You'll likely want Acme::Spork's spork() because: a) You can run zillions of processes at the same time without waiting for them (the fork recommendation will do one at a time as i

Re: extract words from an array

2006-03-05 Thread Paul Johnson
On Sun, Mar 05, 2006 at 07:24:05AM -0800, Scott Ulmen wrote: > There must be a better (read shorter) way to do what I did. In the > "teach yourself perl" book (I'm trying to learn) there is an activity > as follows: > > Write a short program that does the following: > -Opens a file > -Reads

Re: extract words from an array

2006-03-05 Thread Ryan Gies
Scott Ulmen wrote: There must be a better (read shorter) way to do what I did. foreach $singleline (@lines) { my @stuff = $singleline =~ /\b\w*[^aeiou\s]{4}\w*\b/ig; @stuff and print "matched: ", join( ',', @stuff ), "\n"; } The regular expression: /\b\w*[^aeiou\s]{4}\w*\b/ig 1.

extract words from an array

2006-03-05 Thread Scott Ulmen
There must be a better (read shorter) way to do what I did. In the "teach yourself perl" book (I'm trying to learn) there is an activity as follows: Write a short program that does the following: -Opens a file -Reads all the lines into an array -Extracts all the words from each line -Finds a