I ran into similar issues and can repeat your results. Are you on a SPARC? I posted a bug report on
this on sourceforge a year ago. This started happening for me over a year ago after an upgrade. I've upgraded several times but no luck. Currently use v1.34
Here's a work around. Prepend a space to the Url. It won't use _trivial_get that way. (Don't ask me why I thought to try this, Zen I guess.)
# This don't work for me.
perl -MLWP::Simple -e 'my $a=get("http://wire.ap.org/APnews/center_min
+or.html?FRONTID=SCIENCE"); print $a;'
#This does
perl -MLWP::Simple -e 'my $a=get(" http://wire.ap.org/APnews/center_mi
+nor.html?FRONTID=SCIENCE"); print $a;'
This drove me nuts for quite some time. Never was able to understand why it happens. Only with get, not getstore or getprint.
-Lee
"To be civilized is to deny one's nature."
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.