From 50bf9bec10d0d7c3f3299bef58dde5919e3696f4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 23 May 2011 21:44:08 +0200 Subject: Eliminate $efa->parse(), include it in $efa->submit() --- lib/Net/Travel/DE/VRR.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/Net/Travel/DE/VRR.pm b/lib/Net/Travel/DE/VRR.pm index 8f1b506..6f7af12 100644 --- a/lib/Net/Travel/DE/VRR.pm +++ b/lib/Net/Travel/DE/VRR.pm @@ -406,6 +406,8 @@ sub submit { $self->{html_reply} = $response->decoded_content( charset => 'latin-1' ); + $self->parse(); + return; } @@ -495,7 +497,6 @@ Net::Travel::DE::VRR - inofficial interface to the efa.vrr.de German itinerary s ); $efa->submit(); - $efa->parse(); for my $route ($efa->routes()) { for my $part (@{$route}) { @@ -598,11 +599,6 @@ If true: Prefer connections allowing to take a bike along Submit the query to B. I<%opts> is passed on to LWP::UserAgent->new(%opts). -=item $efa->parse() - -Parse the B reply. -returns a true value on success. - =item $efa->routes() Returns a list of Net::Travel::DE::VRR::Route(3pm) elements. Each one contains -- cgit v1.2.3