How to ck for null set w/ Checkboxes

2001-09-24 Thread Teresa Raymond
How do you check for the null set or blank with checkboxes using CGI.pm? The following code does not work for checkboxes though it does for all other input fields. #TEST FOR BAD CHARS my ($name, $value); foreach $name ($q->param()) {foreach $value ($q->param( $name )) {#CK FOR BLANKS if

Re: reg exp match

2001-09-24 Thread Jarrod Overson
- Original Message - From: "David Draley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 24, 2001 8:13 AM Subject: reg exp match > How would I print only the words that contain the letter "p" in a file??? > Right now I am only printing the entire lines that contain w

Re: reg exp match

2001-09-24 Thread Curtis Poe
--- David Draley <[EMAIL PROTECTED]> wrote: > How would I print only the words that contain the letter "p" in a file??? > Right now I am only printing the entire lines that contain words with the > letter "p". > > while () > { > if(/[p]/) >

reg exp match

2001-09-24 Thread David Draley
How would I print only the words that contain the letter "p" in a file??? Right now I am only printing the entire lines that contain words with the letter "p". while () { if(/[p]/) { print "$_";

Re: structure of scripts (newbie Q)

2001-09-24 Thread Stephan Tinnemeyer
Thank you all for your comments! Because I am used to C/C++ I do not 'like' the usage of variables and subroutines before even declaration in a source code 'instinctively'. This is, of course, my personal spleen which may change with more experience in using Perl. brian d foy wrote: > > perl c