From 3cccdc35bc5b4edcc97d486cf9ed50fc7b2ca82a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Sep 2015 14:03:09 +0200 Subject: use Text::Levenshtein(XS) for fuzzy station name matching --- bin/db-iris | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/db-iris') diff --git a/bin/db-iris b/bin/db-iris index 298c792..90368ca 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -153,7 +153,8 @@ sub get_station { else { say STDERR "The input '$input_name' is ambiguous. Please choose one " . 'of the following:'; - say STDERR join( "\n", map { $_->[1] } @stations ); + say STDERR + join( "\n", map { $_->[1] . ' (' . $_->[0] . ')' } @stations ); exit(1); } } -- cgit v1.2.3