On Monday 05 July 2004 21:28, gohaku wrote:
>
> Hi everyone,

Hello,

> After using backticks to retrieve executable output,
> I would like to know if there is a backtick alternative.
>
> For example, to get a File Listing on a Unix-based system,
> I will do the usual:
>
> $exec = "ls -l";
> $src = `$exec`;
>
> Unfortunately, I find the ` to be unreadable and confusing
> because it looks like a quote.

$src = qx($exec);


John
-- 
use Perl;
program
fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to