X-Git-Url: http://git.shiar.nl/sc2-widget/blobdiff_plain/f514022942c074d55501f5a181ad809c3ab349d1..73d1bf9607b8ca88878e89b53eb00fa89135bcc0:/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 {