-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10-06-05 02:35 PM, Ravi Parimi wrote:
my $bot = MediaWiki::Bot->new(
useragent => 'MediaWiki::Bot 2.3.1 (User:Mike.lifeguard)',
assert => 'bot',
protocol => 'https',
host => 'wiki.eng.xxx.com',
path => 'foo/bar',
);
I missed it before - you haven't passed a hashref. Should be:
my $bot = MediaWiki::Bot->new({
protocol => 'https',
host => 'wiki.eng.xxx.com',
path => 'foo/bar',
});
This is documented incorrectly in some places right now, another reason
this shouldn't have been sent to CPAN yet. ARGH!
Since the host, path and protocol were all initialized
when when
initializing $bot, is it necessary to call $bot->set_wiki()
subsequently? That step sounds redundant to me..
The constructor in 3.0 automatically logs you in and does some automatic
configuration unless you tell it not to. You needn't call either
set_wiki() or login().
- -Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkwKjVYACgkQst0AR/DaKHvKIACeMvqJv8+Z9hpAOk/+vOTpxuZw
lbwAnir1hrfYpuKoSN7HUmECToOXGvby
=VXEe
-----END PGP SIGNATURE-----