Perl | redo operator Last Updated : 07 May, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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: perl #!/usr/bin/perl -w $a = 1; # Assigning label to loop GFG: { $a = $a + 5; redo GFG if ($a < 10); } # Printing the value print ($a); Output: 11 Example 2 (Redoing a loop): perl #!/usr/bin/perl -w $a = 1; # Assigning label to loop $count = 1; GFG: while($count < 10) { $a = $a + 5; $count++; redo GFG if ($a < 100); } # Printing the value print ("$a $count"); Output: 101 21 Comment More infoAdvertise with us Next Article Perl | Operators | Set - 2 C Code_Mech Follow Improve Article Tags : Perl perl-operators Similar Reads Perl | y Operator The y operator in Perl translates all characters of SearchList into the corresponding characters of ReplacementList. Here the SearchList is the given input characters which are to be converted into the corresponding characters given in the ReplacementList. Syntax: y/SearchList/ReplacementList/ Retur 2 min read Perl | Operators | Set - 1 Operators are the main building block of any programming language. Operators allow the programmer to perform different kinds of operations on operands. In Perl, operators symbols will be different for different kind of operands(like scalars and string). Operators Can be categorized based upon their 12 min read Perl | Operators | Set - 2 Operators are the main building block of any programming language. Operators allow the programmer to perform different kinds of operations on operands. In Perl, operators symbols will be different for different kind of operands(like scalars and string). Some of the operators already discussed in Per 7 min read Perl | String Operators Operators are the foundation of any programming language. Thus, the functionality of Perl programming language is incomplete without the use of operators. A user can define operators as symbols that help to perform specific mathematical and logical computations on operands. String are scalar variabl 4 min read Perl | lt operator 'lt' operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to check if the string to its left is stringwise less than the string to its right. Syntax: String1 lt String2 Returns: 1 if left argument is less than the right argument Exa 1 min read Perl | eq operator 'eq' operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to check if the string to its left is stringwise equal to the string to its right. Syntax: String1 eq String2 Returns: 1 if left argument is equal to the right argument Examp 1 min read Like