On Thu, Mar 19, 2015 at 10:15 AM, Moritz Lenz <mor...@faui2k3.org> wrote:
> On 03/19/2015 04:05 PM, Tom Browder wrote:
>>
>> In Perl 5 I can do this:
...
>> 1.  How can I combine arrays @a and @b into one array?
>
>
> generally with the comma operator:
>
> my @combined = @a, @b;

It looks like I can also do this:

my @combined = (@a, @b); # use parens (not needed, though)

>> 2.  Can I flatten the arrays into elements inside the foo call?
> foo(|@combined)

Hm, it looks like this also works:

foo(|@, |@b);

My error messages are misleading now because of deeper problems.
Sorry for the noise.

Cheers!

-Tom

Reply via email to