First example in the manual page is incorrect.
Patch to correct is attached.
Subject: | 0001-fix-manual-page-example.patch |
From 82adf7bcdb281d6971365cc4b1daa61579b8f0a4 Mon Sep 17 00:00:00 2001
From: John Heidemann <johnh@isi.edu>
Date: Thu, 17 Jun 2010 13:19:45 -0700
Subject: [PATCH] fix manual page example
---
lib/MediaWiki/Bot.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/MediaWiki/Bot.pm b/lib/MediaWiki/Bot.pm
index 4212f2a..a7844d8 100644
--- a/lib/MediaWiki/Bot.pm
+++ b/lib/MediaWiki/Bot.pm
@@ -95,14 +95,14 @@ login_data is a hashref of data to pass to login(). See that section for a descr
For example:
- my $bot = MediaWiki::Bot->new(
+ my $bot = MediaWiki::Bot->new( {
useragent => 'MediaWiki::Bot 3.0.0 (User:Mike.lifeguard)',
assert => 'bot',
protocol => 'https',
host => 'secure.wikimedia.org',
path => 'wikipedia/meta/w',
login_data => { username => "Mike's bot account", password => "password" },
- );
+ } );
For backward compatibility, you can specify up to three parameters:
--
1.7.0.1