Javatpoint Logo
Javatpoint Logo

Perl redo Statement

The Perl redo statement restarts the current loop without evaluation of the control statement. Further statements in the block will not be executed.

The syntax of redo statement is given below:


Perl redo statement Example

Output:

a = 5
a = 10
a = 20
a = 50
a = 100

In the above program, loop restarts at redo condition that is when $a reaches 40.

Next TopicPerl for Loop





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA