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
- 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
--- 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]/)
>
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 "$_";
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