WWW::B_Rail - Perl extension for b-rail.be
use WWW::B_Rail; my $brail = new WWW::B_Rail(LANGUAGE=>3, FROM=>"LOUVAIN", TO=>"DENDERMONDE", DAY=>12, MONTH=>4, YEAR=>2002, DOA=>1, #Departure or Arrival HOUR=>20, MINUTE=>0); %times = %{$brail->fetch}; for $key (keys %times) { %data = %{$times{$key}}; for $foo (keys %data) { print $foo,"->",$data{$foo},"\n"; } }
WWW::B_Rail is a Perl extension to consult the Belgian Railways website for timetables.
None by default.
Define the departure station
Define the arrival station
Define the requested day
Define the requested month
Define the requested year
Define the requested hour
Define the requested minute
Set either departure (0) or arrival (1) settings
Fetch the specified data. Returns a reference to a hash containing references to hashes.
Hendrik Van Belleghem <lt> beatnik - at - quickndirty - dot - org <gt>
WWW::B_Rail is released under the GPL. See COPYING and COPYRIGHT for more info
To install WWW::B_Rail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::B_Rail
CPAN shell
perl -MCPAN -e shell install WWW::B_Rail
For more information on module installation, please visit the detailed CPAN module installation guide.