in reply to Re^2: Help with argument to a subroutinein thread Help with argument to a subroutine
my @defaults = qw( foo bar baz ); my ($arg0, $arg1, $arg2) = map { $_[$_] || $defaults[$_] } 0..$#_; [download]