# Place this code wher you want the contents of the file... {open (my $fh,"<","sample.html" ) or die $!; local $/=undef; <$fh>}