sub Switcheroo { my @conditions = @_; if ($conditions[0] < 10) { return 'FOO'; } else { return 'BAR'; } }