What is the purpose of redo statement?



What is the purpose of redo statement?..

Answer / Chandan Gupta

The 'redo' statement in Perl causes the current iteration of a loop to be repeated from the top. It can be useful when there are multiple conditions that might cause a loop to iterate again.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

In Perl, what is grep function used for?

1 Answers  


How do you find the length of an array?

1 Answers  


For a situation in programming, how can you determine that Perl is a suitable?

1 Answers  


How to create a directory in perl?

1 Answers  


What are the purpose of close(), getc() and read() functions?

1 Answers  


What is the purpose of goto expr statement?

1 Answers  


How does polymorphism work in perl?

1 Answers  


what is the meaning of rigging?

1 Answers  


my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?

1 Answers   A1 Technology,


What does redo statement do in perl?

1 Answers  


What are the arguements we normally use for perl interpreter?

1 Answers  


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1 Answers  


Categories