in reply to Re: if variants
in thread if variants

Or more generally, with a do statement:
do {local($,) = (','); print(@array);} if $tok eq 'a';