Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Just to situate the historical context, I added the if defined $cond much later on in the piece, when I added the IGNORE() function to change an AND() or an OR() into a no-op. The idea was to ensure that "valid1", "valid2", undef, "valid3" produces a syntactically correct query, without a fourth half-baked conditional creeping in there. But you know what? You're absolutely correct. Given the above and the following:
It does indeed produce (& (a=1) (c=1)). Thank-you very much for this insight, I appreciate it. • another intruder with the mooring in the heart of the Perl In reply to Re^2: Generating complex LDAP queries with Perl
by grinder
|
|