in reply to 3 strings to join
If you mean non-empty, then this will do:
For non-whitespace, change length to /\S/.my @conditions = grep length, $b, $c; $string = $a; $string .= " where ".join(" and ", @conditions) if @conditions;
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: 3 strings to join
by jptxs (Curate) on Sep 29, 2000 at 05:50 UTC |