DEV Community

Discussion on: Switching up my switches in Perl

Collapse
 
mjgardner profile image
Mark Gardner

Either is fine—I prefer less punctuation, especially in a punctuation-happy language like Perl. And stacked ternaries are great if all you're doing is assigning to the same variable.