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

Answer Posted / raj

And i have read some where i could not remember the source
but foreach is faster than the for loop.
Thanks,
Raj

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.

1671


What are the arguments and what do they mean in perl programming?

515


What are the steps involved when the cgi program starts running?

500


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

536


How to print escaping characters inside a string in perl?

505






What does delete function do in perl?

511


What package you use to create a windows services?

485


Explain use of ‘my’ keyword in perl?

565


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

476


What is subroutine in perl?

520


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

2604


How can information be put into hashes?

527


Why Perl aliases are considered to be faster than references?

535


What does redo statement do in perl?

525


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

621