X-Git-Url: http://git.shiar.nl/sc2-widget/blobdiff_plain/40a676b7222ed578faa199dc285e9310e92deaf8..3d1855ba5c9dc7171edf0382e0b456e49be822db:/getsc2clan diff --git a/getsc2clan b/getsc2clan index 3285535..9e6222a 100755 --- a/getsc2clan +++ b/getsc2clan @@ -16,7 +16,7 @@ if (@ARGV and all { m[/] } @ARGV) { my ($profiles, $clanmatches) = part { /\D/ } @ARGV; # separate numbers $profiles && @{$profiles} or die "Usage: $0 ... [...]\n"; -my ($clanmatch) = map { $_ && qr/\A(?:$_)\z/i } join '|', @{$clanmatches}; +my ($clanmatch) = map { $_ && qr/\A(?:$_)\z/i } join '|', @{$clanmatches || []}; sub blizget { state $bliz = do {