I'm just not sure how to approach it. I thought I could use map, but I'm not sure how:my $combined; if ($a) { $combined .= "a=$a "; } if ($b) { $combined .= "b=$b "; } if ($c) { $combined .= "c=$c "; } ... ... ...
I would appreciate any ideas. Thanks.my $combined = map { ??? } qw($a $b $c ...);
In reply to Scalar joining, concatenation, involving varying text by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |