noobie82 has asked for the wisdom of the Perl Monks concerning the following question:
our @proj=qw( A B C ); our $proj=test:query('project', '=','or', @proj);
sub query($$$@){ my($name, $type, $comb,@vals)=@_; @vals=map{ s/'/''; "[$name] $type '$_'";}@vals; return "(".join(" $comb",@vals). ")"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I dont understand what it is doing....
by ikegami (Patriarch) on Jun 07, 2010 at 17:16 UTC | |
|
Re: I dont understand what it is doing....
by choroba (Cardinal) on Jun 07, 2010 at 17:18 UTC | |
|
Re: I dont understand what it is doing....
by biohisham (Priest) on Jun 08, 2010 at 04:30 UTC | |
|
Re: I dont understand what it is doing....
by noobie82 (Initiate) on Jun 07, 2010 at 17:38 UTC | |
by ikegami (Patriarch) on Jun 07, 2010 at 17:47 UTC | |
by Anonymous Monk on Jun 07, 2010 at 17:52 UTC | |
by noobie82 (Initiate) on Jun 07, 2010 at 17:45 UTC | |
by runrig (Abbot) on Jun 07, 2010 at 17:48 UTC |