#!/usr/bin/env perl ## Copyright © 2009 by Daniel Friesel ## License: WTFPL use strict; use warnings; use 5.010; use encoding 'utf8'; use Getopt::Long; use WWW::Mechanize; my $firsturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&itdLPxx_transpCompany=vrr'; my $posturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2'; my $content; my %post; my $www = WWW::Mechanize->new( autocheck => 1, ); my $raw; my $cons; my (@from, @to, @via); my ($from_type, $to_type, $via_type) = ('stop', 'stop', 'stop'); my ($time, $time_depart, $time_arrive); my $date; my @exclude; my $maxinter; my $restrict; my $prefer; my $proximity; my $walk_speed; my $with_bike; my $debug = 0; my $ignore_info = 'Fahrradmitnahme'; my ($i, $j, $con, $part); sub check_ambiguous($) { my $html = shift; my $choose_re = qr/Bitte auswählen<\/span>/; my $select_re = qr/