Subject: | interface |
The interface is awkward. Why does it want an array reference? A list would be much more in line with normal design practise. The code doesn't seem to require an arrayref for any particular reason. Backwards compatibility would be easy to maintain with something simple like @items = (ref $_[0] eq 'ARRAY') ? @{$_[0]} : @_;