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
What does the qq{ } operator do?
Explain perl. When do you use perl for programming?
Which guidelines by Perl modules must be followed?
What are the benefits of perl in using it as a web-based application?
How do you turn on the perl warnings?
What are the arguments and what do they mean in perl programming?
What is “grep” function in perl?
Explain socket programming in perl?
Which feature of perl provides code reusability?
How to read multi lines from a file in perl?
How to convert arrays into a string in perl?
Can inheritance be used in perl? Explain with the help of an example.
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
How do I pass a command line argument in perl?
How would you ensure the re-use and maximum readability of your perl code?