# Pastebin wg6riNEj my @str_jobs = ('a,b,c,d','e,f,g,h'); sub h($s) { { Z=> $s.split(',') } } my @jobs = @str_jobs.map: {h($_)};