Using a script to update Mediawiki

I created a script that allows me to update a page on a media wiki. It uses WWW::Mechanize, IO::All and Config::Std. The last two modules aren’t needed probably. But it makes it all a lot simpler. #!/usr/bin/perl -w use IO::All; use WWW::Mechanize; use Config::Std; read_config "$ENV{HOME}/.mediawiki" => my %config; my $username = $config{login}{username}; my $password = $config{login}{password}; my $hostname = $config{login}{hostname}; my $title = $ARGV[0] or die "usage: mediawiki [page title with under scores]\n\n"; my $url = "http://$hostname/mediawiki/index....

October 28, 2005