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

Answer Posted / satish kumar golukonda

for and foreach works alike.
But for uses condition expression, where as foreach works on
ranges, contineous indexing.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain perl one-liner?

517


Why does Perl not have overloaded functions?

537


How many data types are there in perl?

535


What does `$result = f() .. g()' really return?

571


Explain goto label, goto name, and goto expr?

555






Explain chop?

537


Explain lists and ivalue?

561


How does a “grep” function perform?

599


What is a perl references?

524


What exactly is grooving and shortening of the array?

592


what is the main function of fork() in cgi programming?

549


What are the benefits of perl in using it as a web-based application?

495


How to connect to SQL server through Perl?

566


How do I replace every character in a file with a comma?

532


What is a chomp() function in perl?

519