Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between for & foreach, exec &
system?

Answer Posted / mvamsi

Hi Ramesh, You mean to say that we can't capture output of
the program by using exec function. But its working in my PC.
my $ls = exec('ls');

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any way to add two arrays together?

915


Explain ivalue?

937


In Perl, what is grep function used for?

1012


What is eval function in perl?

903


What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?

928


How to read from a pipeline with Perl

971


What are the reasons that cookie server can’t handle multiple connections?

905


Give an example of using the -n and -p option.

944


what is Perl one liner?

860


What happens in dereferencing?

958


What are the advantages of c over Perl?

881


Which feature of perl provides code reusability?

943


List the data types that Perl can handle?

968


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

935


Explain the difference between die and exit in perl?

823