summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-23 22:12:48 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-23 22:12:48 +0200
commit1e048ee2f717e92b7ed89b1f0acd63b4953be83f (patch)
tree2629429827bd575b2e6a40647bdfc918cf68b734 /bin
parent5106c6d18051685627e6775f48e61946ab192896 (diff)
add new ::Stop class for stop data
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa-m16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 4dc1387..5bea941 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -106,23 +106,23 @@ sub format_route {
say "BUG";
next;
}
- if ( not defined $stop->{arr_time} ) {
+ if ( not defined $stop->arr_time ) {
$output .= sprintf( " %5s %40s %s\n",
- $stop->{dep_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->dep_time, $stop->name, $stop->platform, );
}
- elsif ( not defined $stop->{dep_time} ) {
+ elsif ( not defined $stop->dep_time ) {
$output .= sprintf( "%5s %40s %s\n",
- $stop->{arr_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->arr_time, $stop->name, $stop->platform, );
}
- elsif ( $stop->{arr_time} eq $stop->{dep_time} ) {
+ elsif ( $stop->arr_time eq $stop->dep_time ) {
$output .= sprintf( " %5s %40s %s\n",
- $stop->{dep_time}, $stop->{stop}, $stop->{platform}, );
+ $stop->dep_time, $stop->name, $stop->platform, );
}
else {
$output .= sprintf(
"%5s → %5s %40s %s\n",
- $stop->{arr_time}, $stop->{dep_time},
- $stop->{stop}, $stop->{platform},
+ $stop->arr_time, $stop->dep_time,
+ $stop->name, $stop->platform,
);
}
}