VOOZH about

URL: https://www.geeksforgeeks.org/perl/perl-redo-operator/

⇱ Perl | redo operator - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Perl | redo operator

Last Updated : 11 Jul, 2025
redo operator in Perl restarts from the given label without evaluating the conditional statement. Once redo is called then no further statements will execute in that block. Even a continue block, if present, will not be executed after the redo call. If a Label is given with the redo operator then the execution will start from the loop specified by the Label.
Syntax: redo Label Returns: No Value
Example 1:
Output:
11
Example 2 (Redoing a loop):
Output:
101 21
Comment
Article Tags:
Article Tags:

Explore