Hi, Note that you can use the $? variable to get the command exit status:
Yaron Kahanovitch ----- Original Message ----- From: "Jeff Pang" <[EMAIL PROTECTED]> To: "Beginner" <[EMAIL PROTECTED]> Cc: beginners@perl.org Sent: Wednesday, November 14, 2007 11:24:21 AM (GMT+0200) Asia/Jerusalem Subject: Re: How can I assign system() call to a Variable On Nov 14, 2007 5:18 PM, Beginner <[EMAIL PROTECTED]> wrote: > On 13 Nov 2007 at 19:11, Marco wrote: > > my $result = system($inact); > print $result; > my $result = `system commands`; print $result; system() returns nothing but the executed status of the command itself. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/