| 1 | package YAPC::Europe::UGR; | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | use feature qw(say switch); | ||
| 7 | use experimental qw(smartmatch); | ||
| 8 | |||
| 9 | use version; | ||
| 10 | our $VERSION = qv('0.9.1'); #Release candidate 2, Sunny Sunday | ||
| 11 | |||
| 12 | use Exporter qw(import); | ||
| 13 | our @EXPORT_OK = qw(pick_best_venue); | ||
| 14 | |||
| 15 | sub pick_best_venue { | ||
| 16 | my $year = shift // 2015; | ||
| 17 | given ($year) { | ||
| 18 | when ('2015') { # force string comparison | ||
| 19 | return "Granada"; | ||
| 20 | } | ||
| 21 | } | ||
| 22 | default { | ||
| 23 | # TODO: update this as new proposals come out | ||
| 24 | return 'Cluj-Napoca'; | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | 1; | ||
| 29 | |||
| 30 | __END__ |