in reply to Short and easy way to write if...elsif syntax
There sure is more than one way to do it!
$_ = 'foofum';
my $print_buffer = /linux/ ? 'This is a linux VM'
: /Windows/ ? 'This is a Windows VM'
: 'I have no idea what it is'
print $print_buffer, "\n";
Always on Perls where it is no longer experimental
Sometimes, such as when I deem the syntax to be clearer with it than without
Only if the existing code base uses it or a standards doc mandates it
Never heard of it
I'm still supporting 5.6.0, you insensitive clod!
Results (119 votes). Check out past polls.