Re: Difference between system() and exec() and ``
- From: noreply@xxxxxxxxx (Gunnar Hjalmarsson)
- Date: Wed, 18 Jun 2008 02:40:23 +0200
Rob Dixon wrote:
Gunnar Hjalmarsson wrote:swaroop wrote:As we know there are 3 ways a system shell command to be executed.You should not have asked that question here; you should have looked up the answer in the docs.
1.> $var = system("command");
2.> $var = exec("command");
3.> $var = `command`;
What is difference between these three?
Sheesh!
This is the first thing I read on perl.beginners after time away.
Are you really from the Cocos Islands, Gunnar?
I think you should talk to the other abusive people who like to post here and
form a separate group.
I take it that you don't agree.
The OP wondered about two built-in functions and the backticks operator. I can't think of a more natural first step to find out how they work than reading about them in the Perl documentation. Do you mean that I'm abusive by suggesting that people make it a habit to use the docs at first hand? If that's what you mean, I think you are plain stupid.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.
- Follow-Ups:
- Re: Difference between system() and exec() and ``
- From: Rob Dixon
- Re: Difference between system() and exec() and ``
- References:
- Difference between system() and exec() and ``
- From: Swaroop
- Re: Difference between system() and exec() and ``
- From: Gunnar Hjalmarsson
- Re: Difference between system() and exec() and ``
- From: Rob Dixon
- Difference between system() and exec() and ``
- Prev by Date: Re: Difference between system() and exec() and ``
- Next by Date: making do work with strict
- Previous by thread: Re: Difference between system() and exec() and ``
- Next by thread: Re: Difference between system() and exec() and ``
- Index(es):