- or download this
my $str = "The Police";
$str =~ s/ /+/; # read between the slashes: space becomes +
print "$str\n";
- or download this
$str =~ s/ /+/g; # use this one ;)
- or download this
my $escaped_artist = $FORM{songartist};
$escaped_artist =~ s/ /+/g;
...
...
print FILE "<a href=nap ... (like you had before)
print FILE "$escaped_artist - $escaped_title</a>\n";