GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::Baseball::NPB(3) User Contributed Perl Documentation WWW::Baseball::NPB(3)

WWW::Baseball::NPB - Fetches Japanese baseball games information

  use WWW::Baseball::NPB;

  my $baseball = WWW::Baseball::NPB->new;
  my @games  = $baseball->games;
  # or @games = $baseball->games('central');

  for my $game (@games) {
      my $home    = $game->home;
      my $visitor = $game->visitor;
      printf "%s %d - %d %s (%s) [%s]\n",
          $home, $game->score($home), $game->score($visitor), $visitor,
          $game->status, $game->stadium;
  }

WWW::Baseball::NPB provides you a way to fetch and extract Japanese baseball games information via Yahoo! Baseball. (NPB = Nippon Professional Baseball)

Characters like team names, status and stadium are encoded in EUC-JP. You can convert them to any encoding via Jcode.

Separate out Yahoo! Baseball parsing logic, using information provider architecture (e.g. WWW::Baseball::NPB::Provider::*)

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

LWP::Simple
2002-03-31 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.