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 compare two strings in perl?

948


Explain perl. What are the advantages of programming in perl?

1044


What is the syntax used in Perl grep function?

1041


What does the q{ } operator do?

906


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

881


Which functions in perl allows you to include a module file. State their differences.

952


What is the purpose of _package_ literal?

1040


Write syntax to use grep function?

976


How to code in perl to implement the tail function in unix?

939


What does 'do' statement do in perl?

1002


Mention what is cpan?

1018


Why -w argument is used with perl programs?

983


what are the three groups involved in information sharing?

893


What is the importance of perl warnings? How do you turn them on?

1041


List the operator used in Perl?

981