"get" does not work in perl

I am new to perl. In the past few days, I have made some simple scripts that save the source code of websites to my computer via "get". They do what they should, but they don’t get the content of the website, which is a forum. Non-forum sites work fine. Any idea what is going on? Here's the problem:

my $url = 'http://www.computerforum.com/';
my $content = get $url || die "Unable to get content";
0
source share
1 answer

http://p3rl.org/LWP::Simple#get :

The get () function will retrieve the document identified by the given URL and return it. It returns undef if it fails. [...]

(, " " ) . , OO (. LWP:: UserAgent).

, LWP::UserAgent. , LWP.

+7

All Articles