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 the use of "stderr()"?
How to determine strings length in perl?
There are some duplicate entries in an array and you want to remove them. How would you do that?
How to connect with sqlserver from perl and how to display database table info?
Explain substr function in perl?
How do you set environment variables in perl?
How to code in perl to implement the tail function in unix?
What is perl unshift array function?
What is it meants by '$_'?
Enlist the advantages of using c over perl?
Mention what is cpan?
What is the use of 'ne' operator?
How will you declare a variable in perl?
Does Perl have reference type?
How will you get the count of parameters passed to a perl subroutine?