$h{foo} = 'a'; $h{bar} = 'b'; $h{baz} = 'c'; is(join(' ', values(%h)), "a b c"); #### $a[2] = 'a'; $a[0] = 'b'; $a[1] = 'c'; is("@a", "a b c");