http://qs321.pair.com?node_id=469119


in reply to Predefining sub Parameters

I hesitate to mention this, but in this particular example (certainly not every example - and this probably isn't an advisable way to do it), the sub wouldn't need to have an arrayref passed, technically.

sub somesub { my $first = shift; my @second = @_; my $third = pop @second; }

Granted, this doesn't help the OP with his problem, but a couple of people mentioned that it wasn't possible to have a flattened array in the middle of the arguments, when in a crazy way, it is possible.

    -Bryan