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";
Bought a souvenir
Emailed all my friends about it
Got blowed up
Hit him right dead in the jaw
Made it awkward
Took a selfie
Want to go home
Results (335 votes). Check out past polls.