Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: print result in text/html file-perl cgi

by Anonymous Monk
on Jul 27, 2014 at 20:51 UTC ( [id://1095268]=note: print w/replies, xml ) Need Help??


in reply to print result in text/html file-perl cgi

Is that the actual code you're having trouble with? Because I don't see where you print the data to standard output. You'll have to print the data to both standard output and to the file if you want it to appear in both places...

If the file isn't being created, what user ID is your webserver executing as? Does that user have write access to your desktop? Also, do the error logs of your webserver say anything?

Also, why do you fetch the $URL twice? (once with LWP::UserAgent and once with HTML::TreeBuilder's new_from_url?)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-23 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found