#while (split(/[, ]+/, )) # Edit: Sorry - ignore this while (@_ = split(/[, ]+/, )) # Edit: I meant this { print @_ }