I'm trying to create a script that will read URL from another file. My first step is a creation of the file with my URL:
cat > address.txt
https://unix.stackexchange.com
Then I create perl-script:
#!/usr/bin/perl
use LWP::Simple;
$content = get($URL);
die "Couldn't get it!" unless defined $content;
What should I do to set address from address.txt instead of $URL in my script?