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


in reply to Passing with $_ instead of @_ in anonymous subs

$_ is visible within your methods. All you have to add at the beginning of your method is:

@items = ($_) unless @items;
But you can't expect to behave so as to automagically modify $_ if you modify $_[0].

-- stefp -- check out Nemo