here's the winner:
$playListRow = shell_quote($playListRow); $playListRow =~ s/\r//g; my $result = `ls $playListRow `; print "$result\n";
Filtered the /r out, and had to switch to shell_quote from quoteMeta as quoteMeta wasn't working quite right. I was using backticks as I needed to get the stderr and stdout. At a high level what I'm trying to do: parse a directory of iTunes playlists(m3u files) determine whether all the files in the playlist exist on my file server. If they do great, if they don't, output a playlist file, that lists which tracks are missing, what they are and where they go in the track order. Once i have that complied, I can import my playlists one by one and know whether I have the whole playlist, or if it's missing tracks. If it's missing tracks I can fix it. The issue i've been fighting with is if you import a playlist to itunes and are missing some of the files, itunes just dumps them. No error, nor any log that I've found. Thanks for all the help!

In reply to Re: backtick iterpolation issue by idlehands
in thread backtick iterpolation issue by idlehands

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.