Hendrik Van Belleghem > WWW-B_Rail-0.01 > WWW::B_Rail

Download:
WWW-B_Rail-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

WWW::B_Rail - Perl extension for b-rail.be

SYNOPSIS ^

  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"; }
  }

DESCRIPTION ^

WWW::B_Rail is a Perl extension to consult the Belgian Railways website for timetables.

EXPORT ^

None by default.

METHODES ^

from($city)

Define the departure station

to($city)

Define the arrival station

day($day)

Define the requested day

month($month)

Define the requested month

year($year)

Define the requested year

hour($hour)

Define the requested hour

minute($minute)

Define the requested minute

doa($departureorarrival)

Set either departure (0) or arrival (1) settings

fetch()

Fetch the specified data. Returns a reference to a hash containing references to hashes.

AUTHOR ^

Hendrik Van Belleghem <lt> beatnik - at - quickndirty - dot - org <gt>

SEE ALSO ^

LICENSE ^

WWW::B_Rail is released under the GPL. See COPYING and COPYRIGHT for more info

syntax highlighting: