RE: Need regex to match all UPPERCASE letters?
$_ !~ /[a-z]/ Easy enough! hth Chris -Original Message- From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 8:49 AM To: Subject: Need regex to match all UPPERCASE letters? I need help writing a regular expression that will match lines that have only upper case letters, and sometimes slashes and spaces, but won't match lines with mixed case. Lines that must be matched are like: FAMILY PLANNING / REPRODUCTIVE HEALTH POLICY FAMILY PLANNING / REPRODUCTIVE HEALTH PROJECTS PUBLIC HEALTH HIV/AIDS Lines that must NOT be matched include: Renewed Hope for the World's Children http://www.earthtimes.org/jul/childrenrenewedhopejul12_01.htm AIDS, TB, and Malnutrition Are Triple Threat in Haiti Any suggestions are welcomed. Thank you for helping me with my problem. -Kevin Zembower -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sessions
OK, simple one. Other than creating a database table and managing sessions on my own by passing cookies around manually, are there any options for managing sessions in Perl using CGI? Apache::Session appears to only work in the mod_perl version. The error I keep getting in my error_log file is: Can't locate object method request via package Apache at /usr/local/apache/www/cmrecipe/example.pl line 15. [Thu Jul 19 09:17:08 2001] [error] [client 192.168.x.x] Premature end of script headers: /usr/local/apache/www/cmrecipe/example.pl This leads me to another question, which is how to resolve that error because I'm going to be needing the request object once I start posting forms. Any help you can give to an ASP and PHP developer trying to see the light will be appreciated. Thanks in advance Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Some Advice plz :))
Wow, your response to Mr. Smolarek was a bit harsh, even though is response to you was harsh as well. Hmm Anyway, you'll have to read each line in and parse it and write it out, modifying the appropriate line. You already have the parsing done or you'd not be able to send the confirmation and search for lost passwords. You read each line, parse it, inspect it to see if it is the appropriate line to modify and modify it accordingly, then write it out to a temp file. Keep doing that until you've gone through all of the lines, then remove the original file and move the temp file into its place. hth Chris -Original Message- From: RDWest Sr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 9:12 AM To: [EMAIL PROTECTED] Subject: Some Advice plz :)) hi yall, yup, i'm an old country boy... loli'm strugling here to learn perl on my own and with help from(maybe yall)lol so plz bare with me... i need some advice on an issue here... i'm creating, well trying to create, a ranking system for my online pals... i've accomplished user signup, print info to flatfile database... send confirmation of account and a search for lost userid and pwd... now, i got to thinking... if say a user wants to update their info( change pwd, name, etc...)i'm just completely lost here... does anyone have a good explanation or some code snippets i can look at? tx again RD Sr.
EMail Header Munging
Greetings: I am trying to come up with a PERL script to munge the headers in SPAM email for reporting purposes. Obviously, I don't want to leave my email address in the headers when I report a SPAM to spamcop.net. Does anyone have a script that automatically munges the appropriate information from an email header? Thanks Chris