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
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
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
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.
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