Yep, your test program works for me also.
Make sure you're using the latest version of libwww. In particular, libwww-perl-5.800 has a known threads related crash (RT #6781), which was not libwww's fault but a consequence of core sort bug #30333. See also:
In reply to Re^2: error message "Free to wrong pool 2227b8 not 3d5a2aa0" being returned
by eyepopslikeamosquito
in thread error message "Free to wrong pool 2227b8 not 3d5a2aa0" being returned
by greenrob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |