try
chomping
$newurl. You create
$newurl by appending
$_ to
$baseurl, but
$_ will have a newline at the end of it since you never explicitly removed it.
BlueLines
Disclaimer:
This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.