From 7cbb9bb1284f09a9c55bb42785cc21f37900d3e0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 16 Apr 2009 15:48:35 +0200 Subject: efa: parse_content: Print skipped infos in debug mode --- bin/efa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/efa b/bin/efa index 04b853b..3a4af9f 100755 --- a/bin/efa +++ b/bin/efa @@ -58,7 +58,8 @@ sub parse_content($) { # If the first field is not a time we've got some additional information. # Sadly, this script does not parse it yet, so it's ignored until ($raw->[$offer]->[$offset] =~ /^\d+:\d+$/) { - last unless exists($raw->[$offer]->[++$offset]); + printf("# lost information: %s\n", $raw->[$offer]->[$offset]) if ($debug); + last unless (exists($raw->[$offer]->[++$offset])); } $return->[$offer]->[$i] = { deptime => $raw->[$offer]->[$offset], -- cgit v1.2.3