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";
Throwing nuclear weapons into the sun
Making everybody on Earth disappear
A threat from an alien with a mighty robot
A new technology or communications medium
Providing a magic fish to a Miss Universe
Establishing a Group mind
Results (194 votes). Check out past polls.