Re: How to best count the number of words in a sentence?

2006-03-26 Thread Barry Dancis
I like your idea but, I think you will overcount when there are leading and trailing spaces and undercount when there are only commas, semicolons etc. How about $text =~ s/^\W+|\W+$//g; $number = $text =~ m/(\W+)/sg + 1; Chris Wagner wrote: What the hell, I'll give my version too. ;) $n

Re: Using Class::Dbi::Factory; Installing Apache2

2005-04-05 Thread Barry Dancis
Hi Randy -- Thanks -- I installed Apache2 and mod_perl and they are working fine. Barry 215-885-5187 - Original Message - From: "Randy Kobes" <[EMAIL PROTECTED]> To: "Barry Dancis" <[EMAIL PROTECTED]> Cc: Sent: Sunday, April 03, 2005 11:23 PM Subjec

Using Class::Dbi::Factory; Installing Apache2

2005-04-03 Thread Barry Dancis
Hi -- I am trying to use class::dbi::factory and it does not compile because the line use Apache2; <\code> gives the error "can't locate Apach2.pm". I tried to install Apache2 from cpan by installing Build::Apache2 perl -MCPAN -e \"install Bundle::Apache2\" <\code> and got errors similar t

system call hangs browser

2004-01-25 Thread Barry Dancis
Hi -- I am trying to make a system call from a plx file on wintel 98, IE 6.0. Plx is the extension for my perl cgi files (I have not been able to get IE 6 to recognize .cgi). When I run the code below from a dos window it works fine outputting the html code to the screen. When I invoke i

Re: arrays of hashes

2004-01-19 Thread Barry Dancis
Hi Nick--     For the 10 times through the inner loop the value of $type does not change so you are placing 10 GetData hashes into the same $data{$type} location   Barry - Original Message - From: Nick Djurovich To: Perl-Win32-Users Sent: Monday, January 19, 2004 9:30

Filling an input file field

2003-10-08 Thread Barry Dancis
Hi -- I am using formbuilder with template toolkit and ie6. One of my fields is of type=file but IE6 won't let me set its value using values => $file_name. Is there any way to set it with formbuilder and still have the nice file search input? Do I have to write my own file browser? Have a text