sub foo(ARRAY $bar) {...} # later foo(Bar->new);