Modifiers may well be what you want:
$combined .= "a=$a " if $a; $combined .= "b=$b " if $b; $combined .= "c=$c " if $c;
Concise and clear.
In reply to Re: Scalar joining, concatenation, involving varying text
by GrandFather
in thread Scalar joining, concatenation, involving varying text
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |