in reply to
Only joining elements of an array that are defined
$cmd = join(' ', 'EXEC', $SPROC, join(', ', grep { defined $_ } @CHOICE));
Updated.
Comment on
Re: Only joining elements of an array that are defined
Download
Code
In Section
Seekers of Perl Wisdom