diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-23 22:12:48 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-23 22:12:48 +0200 |
commit | 1e048ee2f717e92b7ed89b1f0acd63b4953be83f (patch) | |
tree | 2629429827bd575b2e6a40647bdfc918cf68b734 /bin | |
parent | 5106c6d18051685627e6775f48e61946ab192896 (diff) |
add new ::Stop class for stop data
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa-m | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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, ); } } |