Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nested conditional operators
- my $size =
- ($width < 10) ? "small" :
- ($width < 20) ? "medium" :
- ($width < 50) ? "large" :
- "extra-large"; # default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement