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

Answer Posted / ram nivas verma

What is the difference between the 'for' & 'foreach' loops? I know that they can be used interchangeably then what is the purpose of keeping them separate? Can anyone suggest me a good url which can tell the difference between two?

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are perl variables?

513


How to turn on Perl warnings? Why is that important?

570


Explain subroutine?

521


What happens in dereferencing?

526


What are the various flags/arguments that can be used while executing a perl program?

453






How to create a package?

517


Explain the default scope of variables in perl?

504


Explain grooving and shortening of arrays?

698


Define operators used in perl?

513


How to start perl in interactive mode?

554


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

476


What is “grep” function in perl?

554


Explain lists ?

522


What interface used in PERL to connect to database? How do you connect to database in Perl?

526


how to connect cisco switch uisng perl script

3377