output:use strict; use warnings; my $result = qx[${\ ( 'ls -l ' . '/etc' . '/passwd' ) }]; print $result . "\n";
Update see also Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}-rw-r--r-- 1 root root 1867 Apr 28 15:00 /etc/passwd
In reply to Re: Line breaks within backticks
by Arunbear
in thread Line breaks within backticks
by BjornStenborg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |