title: Why is the console output returning to the beginning of the line? OR Why is my concatenation not concatenating?
body: <p>I was inspired by another question to write a script (or rather a one-liner) to grab random Wikipedia pages.</p>
  
  <p>Here's what I've got so far:</p>
  
  <pre><code># Grab the HTTP header response from Wikipedia's random page link
  curl 'http://en.wikipedia.org/wiki/Special:Random' -sI
  
  # Search STDIN for the Location header and grab its content
  perl -wnl -e '/Location: (.*)/ and print $1;'
  </code></pre>
  
  <p>And this works. It outputs a random Wikipedia URL to the console. But I need to append "?printable=yes" to that url to get the Wikipedia page without all the non-article content.</p>
  
  <p>However, running:</p>
  
  <pre><code>curl 'http://en.wikipedia.org/wiki/Special:Random' -sI | perl -wnl -e '/Location: (.*)/ and print $1 . "?printable=yes";'
  </code></pre>
  
  <p>Outputs: 
  ?printable=yespedia.org/wiki/James_Keene_(footballer)</p>
  
  <p>Why is my concatenation not concatenating?</p>
  
  <p>UPDATE:</p>
  
  <p>For the curious, here is the one-liner in its completion:</p>
  
  <pre><code>curl `curl 'http://en.wikipedia.org/wiki/Special:Random' -sI | perl -wnl -e '/Location: ([^\r]*)/ and print $1 . "?printable=yes";'`
  </code></pre>