in reply to Getting Sparse - Taming Multivalued Options in Getopt::Long
You don't need an anonymous sub. A foreach will do:
@$_ = split /,/, join ',', @$_ for (\@foos, \@bars, \@bazen, \@quuxi); [download]