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 Farinella

Re: iterate through and array?

2006-10-10 Thread Charles Farinella
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 something without doing that thing for every element in the array

Re: iterate through and array?

2006-10-10 Thread Charles Farinella
so much. :-) Hope this helps! --Tom Phoenix Stonehenge Perl Training -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] voice: 603.924.6079 fax: 603.924.8668

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: 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, I'm already in over my head. I'm trying

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: 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 duplicates and am not sure how to proceed. Help

MIME::Lite message text

2005-07-25 Thread Charles Farinella
-attach( Path= './mailbody' , Filename= 'message.txt' ); $msg-attach( Path= ./logfile_07-24-2005.tar.gz , Disposition = attachment ); $msg-send; print Mission accomplished\n; -- Charles Farinella Appropriate Solutions, Inc

RE: MIME::Lite message text

2005-07-25 Thread Charles Farinella
-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 I'm trying to send a multipart mail message using MIME::Lite. [Tim

Re: escaping @

2005-07-19 Thread Charles Farinella
-disconnect; -- 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

escaping @

2005-07-18 Thread Charles Farinella
; } 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-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

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. If I print $_, the email addresses are correct, if I

newline to br

2004-06-28 Thread Charles Farinella
-- 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