Re: iterate through and array?

2006-10-10 Thread Charles Farinella
#x27;s just what I'm looking for, thanks so much. :-) Hope this helps! --Tom Phoenix Stonehenge Perl Training -- -------- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] vo

Re: iterate through and array?

2006-10-10 Thread Charles Farinella
e webforms for our customers and we're getting spammed. I'd like to put all the phrases into an array instead of all of this 'or' business. On 10/10/06, Charles Farinella <[EMAIL PROTECTED]> wrote: How can I iterate through an array and if I find a match do somet

iterate through and array?

2006-10-10 Thread Charles Farinella
How can I iterate through an array and if I find a match do something without doing that thing for every element in the array. I've been trying to do it with foreach, but that isn't working. -- -------- Charles

Re: non-ascii characters?

2005-10-14 Thread Charles Farinella
On Fri, 2005-10-14 at 15:34, Jeff 'japhy' Pinyan wrote: > On Oct 14, Charles Farinella said: > > > Does anyone know how I can search for non-ascii characters in a text > > file? > > By non-ASCII, do you mean characters high-bit ASCII or Unicode? h,

non-ascii characters?

2005-10-14 Thread Charles Farinella
Does anyone know how I can search for non-ascii characters in a text file? --charlie -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] 603.924.6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: looking for duplicate array values

2005-10-05 Thread Charles Farinella
On Wed, 2005-10-05 at 10:43, Jeff 'japhy' Pinyan wrote: > On Oct 5, Charles Farinella said: > > > I have a list of 15,000+ items in a tab separated list. I am putting > > all the values into an array, and I need to look through all $array[0] > > for duplica

looking for duplicate array values

2005-10-05 Thread Charles Farinella
I have a list of 15,000+ items in a tab separated list. I am putting all the values into an array, and I need to look through all $array[0] for duplicates and am not sure how to proceed. Help? thanks, --charlie -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com

RE: MIME::Lite message text

2005-07-25 Thread Charles Farinella
lts of about 6 $sth->fetchrow_arrays" I don't know how to do either, unfortunately. > > -Original Message- > From: Charles Farinella [mailto:[EMAIL PROTECTED] > Sent: Monday, July 25, 2005 1:50 PM > To: Perl Beginners > Subject: MIME::Lite message text > &

MIME::Lite message text

2005-07-25 Thread Charles Farinella
bject => 'test attach', Type=> 'multipart/mixed' ); $msg->attach( Path=> './mailbody' , Filename=> 'message.txt' ); $msg->attach( Path=> "./logfile_07-24-2005.tar.gz

Re: escaping @

2005-07-19 Thread Charles Farinella
|| die; > > open INFILE, "<$infile" or die "Can't open file for reading: $!"; > while ( ) { >$sth->execute( $_ ); > } > close INFILE; > > $sth->finish; > $dbh->disconnect; -- Charles Farinella Appropriate Solutions,

Re: escaping @

2005-07-18 Thread Charles Farinella
On Mon, 2005-07-18 at 11:53, Wiggins d'Anconia wrote: > Charles Farinella wrote: > > I'm sure this is very simple and I am overlooking something. I want to > > read a list of bad email addresses from a file and remove them from my > > database. > > >

escaping @

2005-07-18 Thread Charles Farinella
$sth->execute; finish $sth; $dbh->disconnect; } close( INFILE ); == -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] 603.924.6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

newline to

2004-06-28 Thread Charles Farinella
7;t work. --charlie -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] 603.924.6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

monitor for a filename

2004-05-07 Thread Charles Farinella
I need to look at a directory for about 90 seconds, and if a certain file shows up, do something with it. A pointer to a man page or any reference would be appreciated. --charlie -- Charles Farinella Appropriate Solutions, Inc. 603-924-6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For