DEV Community

loading...

Discussion on: Switching up my switches in Perl

Collapse
mjgardner profile image
Mark Gardner Author

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.