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
What is q (single q) operator in perl?
Which has highest precedence in between list and terms? Explain?
What is the main function of cookie server?
Define print() function in perl?
Explain use of ‘my’ keyword in perl?
How to read file into hash array ?
Explain arrays in perl.
What are scalars in perl?
What are the benefits of perl in using it as a web-based application?
What are the different string manipulation operators in perl?
What is the use of –w?
How to deleting an existing file in perl programming?
Why -w argument is used with perl programs?
How to prevent file truncation in perl?
Can inheritance be used in perl?