1. Home
  2. Computing & Technology
  3. Perl

How to read character information from the World of Warcraft servers.

From , former About.com Guide

Lets say that you, like me, are addicted to World of Warcraft, and you decide that you'd like to track the progress of your characters, or maybe your friends characters, on your personal website. You could hard code all that data, updating whenever you have the time, or with some simple Perl scripting magic, you could automate the whole process!

First, like all non-standard Perl modules, you will need to install Games::WoW::Armory from CPAN, and then you can include it at the top of your Perl programs with the use statement:

use Games::WoW::Armory;
After that, we create a new WoW object and do a simple search:
my $wow = Games::WoW::Armory->new(); $wow->search_character( { realm => 'YOUR_REALM', character => 'YOUR_CHARACTER', country => 'SERVER_COUNTRY_CODE'} );
Once the lookup is complete, you can print out all kinds of interesting data about your character and use it to automatically track your progress:
print $wow->character->name;
print $wow->character->race;
print $wow->character->level;
There's even a guild search function for tracking your guilds members. Once again, why take the time to do things that can easily be automated with a little Perl scripting! Module Links:
  1. Games::WoW::Armory on CPAN
  2. Games::WoW::Armory Documentation
  3. Franck Cuny
More Perl Quick Tips
Explore Perl
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Perl
  4. Programming Perl
  5. Packages & Modules
  6. Perl Module Games::WoW::Armory - How to read character information from the World of Warcraft servers.

©2009 About.com, a part of The New York Times Company.

All rights reserved.