http://qs321.pair.com?node_id=417905


in reply to Re: PerlMonks::Mechanized (beta)
in thread PerlMonks::Mechanized (beta)

Thanks for your report. It's funny that the missing trailing '/' character wouldn't be a problem for me, and would for you. We're both hitting the same server. But regardless, it was a simple fix. I've annotated the fix among the update log in the root node for this thread.

You may already have noticed this by reading the module's comments and code, but you can override the default site name (which is now set as "http://www.perlmonks.org/") by setting $ENV{PMSITE} prior to creating a PM::Mech object, or (of course) by setting the PMSITE environment variable. The hard coded site name now has a trailing slash to fix your reported problem. ...and likewise if using the PMSITE environment variable, remember to use that trailing slash. I may incorporate a check for that when I go through and do more to bullet proof this module in the near future.

Glad you liked it. Aside from the positive rep, I haven't received many comments about it, so I don't know if anyone actually finds it useful. I'm nearly done rewriting the Janitors Thread Retitler to use this module, and it's made it a lot easier, so for me, it's been helpful.


Dave