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

Comment on array slicing and range operator

527


Explain about the applications of perl?

546


“Perl regular expressions match the longest string possible”. What is the name of this match?

528


what are the three groups involved in information sharing?

479


What is the syntax used in Perl grep function?

592






Who created perl?

529


How to remove a directory in perl?

488


Explain perl. When do you use perl for programming?

451


How to change a directory in perl?

549


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1799


How to create a directory in perl?

530


Explain arrays in perl.

522


What is the difference between perl list and perl array?

471


How to read from a pipeline with Perl

549


How to read a single line from a file in perl?

546