in reply to Re^2: problem web xml file
in thread problem web xml file

Ahh its compressed! So how would I uncompress it to print to STDOUT?

I just really need to read and save the file so it should work now but would like to know how to deal with on cmdline.

Replies are listed 'Best First'.
Re^4: problem web xml file
by Anonymous Monk on Jul 01, 2012 at 21:38 UTC
Re^4: problem web xml file
by tobyink (Canon) on Jul 02, 2012 at 13:57 UTC

    It's compressed, but it correctly includes a Content-Encoding HTTP header, so LWP::Simple should be decompressing it for you. (My copy certainly does.)

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
      Well, getprint doesn't, mirror doesn't, get does
Re^4: problem web xml file
by Anonymous Monk on Jul 01, 2012 at 21:39 UTC

    My shell doesn't interpolate $ua  perl -CSDL -MLWP::Simple=$ua -e " print $ua->get( shift )->decoded_content "