in reply to Re: Backtics execution with multiple lines
in thread Backtics execution with multiple lines

That's curious, becouse I can do command line splitting with "\" in my shell.
And here backticks are not working:
$ cat backticks.pl #!/usr/bin/perl `ls \ -l *.pl`; $ perl backticks.pl sh: line 1: -l: command not found

Replies are listed 'Best First'.
Re^3: Backtics execution with multiple lines
by kennethk (Abbot) on Feb 04, 2009 at 18:17 UTC
Re^3: Backtics execution with multiple lines
by ikegami (Patriarch) on Feb 04, 2009 at 18:19 UTC
    You're not passing a slash to the shell. Backticks are like "". If you want the resulting string to contain a slash, you need to escape it.
    $ perl -le'print "foo bar"' foo bar $ perl -le'print "foo\ bar"' foo bar $ perl -le'print "foo\\ bar"' foo\ bar