Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

grep not working as expected

by davidj (Priest)
on Oct 17, 2006 at 22:14 UTC ( #578911=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <select name="report_type" >
    <option value="case_id">case_id</option>
    ...
    <option value="receiver">receiver</option>
    <option value="date">date</option>
    </select>
    
  2. or download this
    print "param=" . $q->param('report_type') . "<BR>";
    if( grep { /$q->param('report_type')/ } (qw/case_id hosp_alias sender 
    +receiver/) ) {
    ...
    } else {
        print "we are NOT getting the list<BR>";
    }
    
  3. or download this
    param=sender
    we are NOT getting the list
    
  4. or download this
    param=sender
    we are getting the list
    
  5. or download this
    #!/usr/bin/perl
    
    ...
    } else {
        print "not getting the list\n";
    }
    
  6. or download this
    getting the list
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://578911]
Approved by chargrill
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-11-23 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (130 votes), past polls