in reply to Open web-adress as filehandle

Why would WWW::Mechanize die if the file doesn't have HTML content?

Maybe you want to show an example that actually demonstrates this?

For treating a scalar as a filehandle, see open on "in-memory filehandles".

Replies are listed 'Best First'.
Re^2: Open web-adress as filehandle
by Lowry (Initiate) on Aug 18, 2014 at 06:57 UTC

    Sorry, you are right. It only dies if I try to get the content as text. Raw content shouldn't be a problem.
    And thanks for the "in-memory FH" hint. Will definitely look at it.

    Lowry