in reply to trailing white spaces when pushing into array

The space you see is the default value of LIST_SEPARATOR ($"). Set it locally to a null string. See perldoc -v "LIST_SEPARATOR".
{ local $"=''; $content = ("$baseurl@list"); }
Bill

Replies are listed 'Best First'.
Re^2: trailing white spaces when pushing into array
by ikegami (Patriarch) on Aug 23, 2018 at 20:36 UTC

    yuck!

    $content = $baseurl . join("", @list);
    or
    $content = join("", $baseurl, @list);
      Much better. I only addressed the symptom, not the real problem.
      Bill
Re^2: trailing white spaces when pushing into array
by flieckster (Scribe) on Aug 23, 2018 at 20:06 UTC
    ohh, thanks! that worked great!