perl script to fetch Wordpress blog posts