The repository contains a collection of different programming snippets to different programming languages from own developments as well as other projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Michael Reber b880c3ccde Initial commit 3 years ago
..
$_ takes the place of the control variable.pl Initial commit 3 years ago
@numbers = ( 1 .. 10 ).pl Initial commit 3 years ago
A do statement.pl Initial commit 3 years ago
A program containing a simple example of an if statement.pl Initial commit 3 years ago
A program that demonstrates the while statement.pl Initial commit 3 years ago
A program that loops using a single-line conditional statement.pl Initial commit 3 years ago
A program that uses the if-else statement.pl Initial commit 3 years ago
A program that uses the if-elsif-else statement.pl Initial commit 3 years ago
A program that uses the until statement.pl Initial commit 3 years ago
A while loop is often used to read from a file until there is no more data available.pl Initial commit 3 years ago
A word-counting program that uses the next statement.pl Initial commit 3 years ago
A word-counting program that uses the redo statement.pl Initial commit 3 years ago
Analysis of sales results.pl Initial commit 3 years ago
Average-sales problem with counter-controlled repetition.pl Initial commit 3 years ago
Average-sales problem with sentinel-controlled repetition.pl Initial commit 3 years ago
Breaking Out.pl Initial commit 3 years ago
Choosing an Iterator.pl Initial commit 3 years ago
Conditional Control Statements.pl Initial commit 3 years ago
Conditional Modifiers and print.pl Initial commit 3 years ago
Conditional Modifiers- The if Modifier.pl Initial commit 3 years ago
Conditional operator- The unless Modifier and while loop and __DATA__.pl Initial commit 3 years ago
Conditional operator- The unless Modifier.pl Initial commit 3 years ago
Controlling Loop Flow.pl Initial commit 3 years ago
Count 10 with while loop.pl Initial commit 3 years ago
Counting Up And Down.pl Initial commit 3 years ago
Create an infinite loop using a for loop.pl Initial commit 3 years ago
Declare variable in foreach statement.pl Initial commit 3 years ago
Demonstrating the .. operator.pl Initial commit 3 years ago
Do .. while statement.pl Initial commit 3 years ago
Duplicate of the foreach structure with for structure.pl Initial commit 3 years ago
Duplicate the for structure with the foreach keyword.pl Initial commit 3 years ago
Each time through the loop, foreach places the next element of the list into the scalar variable.pl Initial commit 3 years ago
Example of foreach from a min to a max.pl Initial commit 3 years ago
Example using the continue block.pl Initial commit 3 years ago
Exit a loop.pl Initial commit 3 years ago
Exits using the last statement.pl Initial commit 3 years ago
Extend the if statement to include an else block.pl Initial commit 3 years ago
For each loop with array and $_.pl Initial commit 3 years ago
For each loop with array.pl Initial commit 3 years ago
From to.pl Initial commit 3 years ago
Going onto the Next.pl Initial commit 3 years ago
Goto statement with label.pl Initial commit 3 years ago
Here is an example of the for loop.pl Initial commit 3 years ago
If and else.pl Initial commit 3 years ago
If start with - no repeat.pl Initial commit 3 years ago
If statement and integer comparsion.pl Initial commit 3 years ago
If statement in a while statement.pl Initial commit 3 years ago
If statement ladder.pl Initial commit 3 years ago
If statement with else.pl Initial commit 3 years ago
If statement with scalar variable.pl Initial commit 3 years ago
If you declare your iterator outside the loop, any value it had then will be restored afterwards.pl Initial commit 3 years ago
Initialization, test, and increment, decrement of counters is done in one step.pl Initial commit 3 years ago
Labels Create an infinite loop to demonstrate how last will break out of multiple code blocks.pl Initial commit 3 years ago
Last with label.pl Initial commit 3 years ago
Letter based range.pl Initial commit 3 years ago
Loop Control Statements.pl Initial commit 3 years ago
Loop with label.pl Initial commit 3 years ago
Looping Modifiers- The while Modifier.pl Initial commit 3 years ago
Looping Until.pl Initial commit 3 years ago
Looping While.pl Initial commit 3 years ago
Looping through an array with the for repetition structure.pl Initial commit 3 years ago
Mix $_ and foreach statement.pl Initial commit 3 years ago
Mixed diamond operator with for loop condition 2.pl Initial commit 3 years ago
Mixed diamond operator with for loop condition.pl Initial commit 3 years ago
Nest if statement into for loop.pl Initial commit 3 years ago
Nested for loop.pl Initial commit 3 years ago
Next if.pl Initial commit 3 years ago
Next statement with if statement.pl Initial commit 3 years ago
Next statement.pl Initial commit 3 years ago
Perl has a number of string comparison operators you can use in if statements.pl Initial commit 3 years ago
Plural format and ternary operator.pl Initial commit 3 years ago
Plural message.pl Initial commit 3 years ago
Plural output with if statement.pl Initial commit 3 years ago
Print out even numbers with a do...while loop.pl Initial commit 3 years ago
Put more than one statement first and third part of for statement.pl Initial commit 3 years ago
Range Operator.pl Initial commit 3 years ago
Range based on letter and digit- from 3 to z.pl Initial commit 3 years ago
Range based on letter and digit- from z to 3.pl Initial commit 3 years ago
Range based on letter.pl Initial commit 3 years ago
Range counting down.pl Initial commit 3 years ago
Range counting up.pl Initial commit 3 years ago
Reference array length in for loop.pl Initial commit 3 years ago
Reference for loop control variable.pl Initial commit 3 years ago
Setting elements in a list to equal the corresponding elements of another list with three different names.pl Initial commit 3 years ago
Standard for structure- Loops 5 times, printing the multiples of 5 from 0-20.pl Initial commit 3 years ago
Standard foreach structure, printing the values in a list.pl Initial commit 3 years ago
Standard foreach structure. Prints the letters A-G.pl Initial commit 3 years ago
String based range.pl Initial commit 3 years ago
Sums the numbers from 1 to a specified number and also sums the even numbers.pl Initial commit 3 years ago
Switch for data type.pl Initial commit 3 years ago
Switch on sub.pl Initial commit 3 years ago
The .. operator goes from a minimum to a maximum, with foreach.pl Initial commit 3 years ago
The Range Operator and Array Assignment.pl Initial commit 3 years ago
The Switch.pm Module.pl Initial commit 3 years ago
The continue block allows the while loop to act like a for loop.pl Initial commit 3 years ago
The continue block gets executed just before the condition gets evaluated again.pl Initial commit 3 years ago
The do-while and do-until Loops.pl Initial commit 3 years ago
The for Loop.pl Initial commit 3 years ago
The foreach Loop.pl Initial commit 3 years ago
The foreach modifier evaluates once for each element, with $_ aliased to each element.pl Initial commit 3 years ago
The foreach statement iterates through list values, assigning a variable the value of each element in turn.pl Initial commit 3 years ago
The foreach statement lets you iterate for each element in a list or array.pl Initial commit 3 years ago
The if Construct.pl Initial commit 3 years ago
The if-else Construct.pl Initial commit 3 years ago
The if-elsif-else Construct.pl Initial commit 3 years ago
The last statement breaks out of a loop from within the loop block.pl Initial commit 3 years ago
The or part allows for a statement to be executed if the main part fails.pl Initial commit 3 years ago
The range operator and foreach loop.pl Initial commit 3 years ago
The unless Construct.pl Initial commit 3 years ago
The unless statement is the opposite of if and executes a block unless a condition is true.pl Initial commit 3 years ago
The until Loop.pl Initial commit 3 years ago
The until modifier repeatedly executes the second expression as long as the first expression is false.pl Initial commit 3 years ago
The until statement.pl Initial commit 3 years ago
The while Loop.pl Initial commit 3 years ago
The while command.pl Initial commit 3 years ago
Two ranges.pl Initial commit 3 years ago
Use a label.pl Initial commit 3 years ago
Use an elsif statement to check if a different condition is true.pl Initial commit 3 years ago
Use for loop to output all elements in an array.pl Initial commit 3 years ago
Use for loop to output the element one by one in an array.pl Initial commit 3 years ago
Use foreach to loop through hash with keys function.pl Initial commit 3 years ago
Use if statement to check the integer value.pl Initial commit 3 years ago
Use range operator with for statement.pl Initial commit 3 years ago
Use until to read user input.pl Initial commit 3 years ago
Use while loop to read console input and replace.pl Initial commit 3 years ago
Use while loop to read console input.pl Initial commit 3 years ago
Uses the for statement to read four input lines and write three of them.pl Initial commit 3 years ago
Using .. to construct array.pl Initial commit 3 years ago
Using While loop the output the elements in an array.pl Initial commit 3 years ago
Using a label without a loop and the redo statement.pl Initial commit 3 years ago
Using a label.pl Initial commit 3 years ago
Using array length in foreach statement.pl Initial commit 3 years ago
Using block labels with next in nested looping structures.pl Initial commit 3 years ago
Using block labels with next.pl Initial commit 3 years ago
Using both next and continue.pl Initial commit 3 years ago
Using do .. until statement.pl Initial commit 3 years ago
Using for loop to sum the total.pl Initial commit 3 years ago
Using foreach loops with hashes.pl Initial commit 3 years ago
Using foreach statement with hash.pl Initial commit 3 years ago
Using foreach statement with print.pl Initial commit 3 years ago
Using foreach to iterate over an array.pl Initial commit 3 years ago
Using foreach to loop through an array without using the default value.pl Initial commit 3 years ago
Using foreach to loop through array variable.pl Initial commit 3 years ago
Using if statement to check if a variable has been defined.pl Initial commit 3 years ago
Using if statement to check if a variable is zero.pl Initial commit 3 years ago
Using if statement to check the number entered from keyboard.pl Initial commit 3 years ago
Using if statements with relational and equality operators.pl Initial commit 3 years ago
Using my inside for statement.pl Initial commit 3 years ago
Using nested for loop to assign value to two dimensional array.pl Initial commit 3 years ago
Using nested for loop to output the elements in a two-dimensional array.pl Initial commit 3 years ago
Using predefined variable $_ in foreach loop.pl Initial commit 3 years ago
Using the do-until repetition structure.pl Initial commit 3 years ago
Using the do-while repetition structure.pl Initial commit 3 years ago
Using the equality-comparison operator to compare two numbers entered at the keyboard.pl Initial commit 3 years ago
Using the goto statement.pl Initial commit 3 years ago
Using the if elsif statement to check the number entered from keyboard.pl Initial commit 3 years ago
Using the last statement in a foreach structure.pl Initial commit 3 years ago
Using the next statement in a foreach structure.pl Initial commit 3 years ago
Using the redo statement in a while structure.pl Initial commit 3 years ago
Using unless with regular expression.pl Initial commit 3 years ago
Using until with print statement.pl Initial commit 3 years ago
Using variable defined outside in foreach loop.pl Initial commit 3 years ago
Using while and for statement to check if you had typed in four letter words.pl Initial commit 3 years ago
Using while loop to calculate the number of lines in a file.pl Initial commit 3 years ago
Using while loop with each.pl Initial commit 3 years ago
Using while statement to check the entered value from keyboard.pl Initial commit 3 years ago
Using while statement to read from keyboard.pl Initial commit 3 years ago
While loop and counter.pl Initial commit 3 years ago
While loop counter.pl Initial commit 3 years ago
While loop, foreach loop, and block and redo.pl Initial commit 3 years ago
While statement and scalar control value.pl Initial commit 3 years ago
You can use a for loop to loop for a specific number of times.pl Initial commit 3 years ago
foreach ( 1 .. 10 ) loops 10 times, not requiring a control variable.pl Initial commit 3 years ago
foreach (1 .. 10) range.pl Initial commit 3 years ago
foreach Loop Array Processing.pl Initial commit 3 years ago
foreach Loop Hash Processing in a CGI Program.pl Initial commit 3 years ago
foreach Loop Hash Processing.pl Initial commit 3 years ago
foreach and array.pl Initial commit 3 years ago
foreach statement with number range.pl Initial commit 3 years ago
foreach statement.pl Initial commit 3 years ago
he while, until, and do Statements.pl Initial commit 3 years ago
if in a while loop.pl Initial commit 3 years ago
if scope.pl Initial commit 3 years ago
if statement.pl Initial commit 3 years ago
if-else statement.pl Initial commit 3 years ago
if-elsif statement.pl Initial commit 3 years ago
last if.pl Initial commit 3 years ago
last statement inside an if statement.pl Initial commit 3 years ago
last statement.pl Initial commit 3 years ago
next with condition.pl Initial commit 3 years ago
program that prints the numbers from 1 to 5 using the for statement.pl Initial commit 3 years ago
range list and for loop.pl Initial commit 3 years ago
redo statement.pl Initial commit 3 years ago
unless statement in while.pl Initial commit 3 years ago
unless statement with else.pl Initial commit 3 years ago
unless statement with elsif.pl Initial commit 3 years ago
unless statement.pl Initial commit 3 years ago
until statement.pl Initial commit 3 years ago
until with continue.pl Initial commit 3 years ago
until with diamond operator.pl Initial commit 3 years ago
until with integer.pl Initial commit 3 years ago
while and until loop.pl Initial commit 3 years ago
while data section.pl Initial commit 3 years ago
while statement to read input.pl Initial commit 3 years ago
while-until Loop.pl Initial commit 3 years ago