in reply to Re^2: system call with variable interpolation
in thread system call with variable interpolation

Try:
system("echo \'$abc\' >> log.txt");

Replies are listed 'Best First'.
Re^4: system call with variable interpolation
by JavaFan (Canon) on Jul 15, 2011 at 11:34 UTC
    Why the backslashes?
      Habit. Silly precaution. You're right, they aren't needed in this particular situation.