Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Read file after download

by hippo (Chancellor)
on Jul 01, 2020 at 22:00 UTC ( #11118774=note: print w/replies, xml ) Need Help??


in reply to Read file after download

I guess you mean something like the below. Obviously add your own error handling but this should point you in the right direction I would hope.

#!/usr/bin/env perl use strict; use warnings; use LWP::UserAgent; use Digest::SHA 'sha256_hex'; my $response = LWP::UserAgent->new->get ('https://www.perlmonks.org/?n +ode_id=11118766'); my $digest = sha256_hex ($response->decoded_content); print "The digest is '$digest'\n";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-08-08 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (51 votes). Check out past polls.

    Notices?