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

How to create a directory in perl?

1121


What is the use of -t?

1020


What does redo statement do in perl?

1087


How to get help for perl?

1037


What does delete function do in perl?

1043


What is the difference between use and require in perl?

913


What are stdin, stdout and stderr?

1202


Explain '->' in perl?

971


What is Perl?

1053


When would `local $_' in a function ruin your day?

997


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2274


What does file test operators do in perl?

982


If you want to empty an array then how would you do that?

1171


Why to use perl scripting?

1062


Define print() function in perl?

951