in reply to system command error

The direct cause of what's happening is that you're using qq() instead of q(). qq() interpolates its contents, q() does not. Of course, as the other posts point out, there are probably better ways to do this.

Replies are listed 'Best First'.
Re^2: system command error (how qq?)
by tye (Sage) on Apr 04, 2003 at 16:23 UTC

    The difference between q() and qq() only applies to the characters $, @, \, and the delimiter(s) (parens in this case) and the difference is rather subtle for the last few. Of those characters, I only see \ used and I see it used twice in a row. Now "\\" eq '\\' (they are both a single backslash character) so changing qq() to q() should make no difference at all.

                    - tye