for (@args) { # Apply smart-ish double quotes if (/ /) { $_ = qq{"$_"}; } };