in reply to Line breaks within backticks
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Line breaks within backticks
by BjornStenborg (Initiate) on May 08, 2008 at 12:37 UTC |