use strict; my $input = "somefile.html"; open (INPUT, $input) || die; my $content = ; close INPUT; #### use strict; my $content = LWP::Simple::get($input);