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

Answer Posted / maheswar reddy

The For and Foreach loop works quite same......but
Foreach loop is best way to access dynamic arrays.If we don't know the size of the array then we can't mention the range for the "FOR LOOP" in this case for loop is best

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain tk?

520


How to convert arrays into a string in perl?

519


Explain ivalue?

547


What does last statement do in perl?

530


How many data types are there in perl?

536






what is Chop & Chomp function does?

598


What is boolean context?

553


Explain goto label?

517


What are the steps involved in configuring a server using cgi programming?

482


Explain the meaning of perl one-liner?

515


What is perl pop array function?

537


What is q (single q) operator in perl?

537


Explain the difference between die and exit in perl?

442


What is cpan in perl?

552


Why to use perl scripting?

530