Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Open web-adress as filehandle

by Corion (Patriarch)
on Aug 18, 2014 at 06:52 UTC ( [id://1097795]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found