My bad. I changed it to try to make it sound more descriptive, but didn't test. Thanks for pointing it out.
-----Original Message-----
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Tue 7/6/2004 1:00 AM
To: [EMAIL PROTECTED]
Cc:
Subject: Re: Backticks alternative?
<snip>
> $exec = "ls -l";
> $src = syscall($exec);
>
> sub syscall{
> return `$_[0]`;
> }
>
> should work.
Should it? Did you try it? syscall() is a built-in Perl function, so
the above does *not* work.
