Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: grep not working as expected

by imp (Priest)
on Oct 17, 2006 at 22:31 UTC ( #578916=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    grep { /$q->param('report_type')/ } (qw/case_id hosp_alias sender rece
    +iver/)
    
  2. or download this
    grep { $q->param('report_type') eq $_ } (qw/case_id hosp_alias sender 
    +receiver/)
    
  3. or download this
    my $report_type = $q->param('report_type');
    
    grep { $report_type eq $_ } (qw/case_id hosp_alias sender receiver/)
    
  4. or download this
    use List::Util qw( first );
    
    if ( first { $report_type eq $_ } (qw/case_id hosp_alias sender receiv
    +er/)) {
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://578916]
help
Chatterbox?
[zentara]: See problems with Nvidia and Linus Torvalds
[choroba]: that's 2012
[zentara]: I just acquired a computer with the card type, and wondered if it was best to stick with the open-source code or use NVIDIA's proprietary code
[zentara]: do you feel good about a non-open-source code, being in control of your display functions?
[choroba]: If you're not going to play 3d games on it, using the open source driver should be enough

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-05-26 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?