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

RE:(even more grep:)3 strings to join

by jptxs (Curate)
on Sep 29, 2000 at 02:58 UTC ( [id://34529]=note: print w/replies, xml ) Need Help??


in reply to Re: 3 strings to join
in thread 3 strings to join

nice.

throw in another join and grep:

$string = join ' where ', grep {$_} ($first, join ' and ', grep {$_} ( + $b, $c ));
and it can even handle the case where there are no where clauses...

-- I'm a solipsist, and so is everyone else. (think about it)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://34529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-19 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found