use strict; use warnings; use LWP::Simple; my $url = "http://whatev.er"; my $content = get($url); $content =~ s/ /%20/g;