in reply to Quoting in Backtick

programmers are just human and make mistakes. by forming a habit you can avoid making mistakes.
in the case of doing system commands i usually do:
my $cmd = "some command"; print "$cmd\n"; # comment out later my $res = qx{$cmd};
so i always see first what the command will look like. in your case you would have recognized that the $' has vanished.

Replies are listed 'Best First'.
Re^2: Quoting in Backtick
by Fletch (Bishop) on Oct 28, 2007 at 02:19 UTC