summaryrefslogtreecommitdiff
path: root/lib/Net/Travel/DE
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-24 08:59:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-24 08:59:28 +0200
commit8828e04824562d2b9de138b218477541fc130e1d (patch)
treef6cf8faf04c1f1d8dd10e33246b0ba7a59adc695 /lib/Net/Travel/DE
parent50bf9bec10d0d7c3f3299bef58dde5919e3696f4 (diff)
VRR.pm: Fix SYNOPSIS
Diffstat (limited to 'lib/Net/Travel/DE')
-rw-r--r--lib/Net/Travel/DE/VRR.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Net/Travel/DE/VRR.pm b/lib/Net/Travel/DE/VRR.pm
index 6f7af12..652bf15 100644
--- a/lib/Net/Travel/DE/VRR.pm
+++ b/lib/Net/Travel/DE/VRR.pm
@@ -492,18 +492,19 @@ Net::Travel::DE::VRR - inofficial interface to the efa.vrr.de German itinerary s
use Net::Travel::DE::VRR;
my $efa = Net::Travel::DE::VRR->new(
- from => ['Essen', 'HBf'],
- to => ['Duisburg', 'HBf'],
+ from => [ 'Essen', 'HBf' ],
+ to => [ 'Duisburg', 'HBf' ],
);
$efa->submit();
- for my $route ($efa->routes()) {
- for my $part (@{$route}) {
+ for my $route ( $efa->routes() ) {
+ for my $part ( $route->parts() ) {
printf(
- "%-5s ab %-30s %-20s %s\n%-5s an %-30s\n\n",
- $part->dep_time, $part->dep_stop, $part->train_line,
- $part->train_dest, $part->arr_time, $part->arr_stop,
+ "%s at %s -> %s at %s, via %s to %s",
+ $part->departure_time, $part->departure_stop,
+ $part->arrival_time, $part->arrival_stop,
+ $part->train_line, $part->train_destination,
);
}
print "\n\n";