The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl

use strict;
use warnings;

use Test::More tests => 1;

use XS::APItest qw(join_with_space);

sub foo { 'A' .. 'C' }

my $bar = 42;
my @baz = ('x', 'y');

my $str = join_with_space $bar, foo, @baz;
is $str, "42 A B C x y";