Perl loop


  Translation results:

Perl is the abbreviation of Practical Extraction and Report Language, which can be translated as "Practical Report Extraction Language".

Perl is a high-level, general-purpose, literal, dynamic programming language.

Perl was originally designed by Larry Wall and was published on December 18, 1987.

Perl borrows features from C, sed, awk, shell scripts, and many other programming languages.

The most important feature of Perl is that Perl integrates regular expression functions and the huge third-party code library CPAN.

Perl loopsyntax

Sometimes, we may need to execute the same block of code multiple times. Normally, statements are executed sequentially: the first statement in the function is executed first, followed by the second statement, and so on.

Programming languages ​​provide a variety of control structures for more complex execution paths.

Perl loopexample

#!/usr/bin/perl
for( ; ; ){
printf "The loop will execute indefinitely.\n";}

Popular Recommendations

Home

Videos

Q&A