perl lec6: loops (While, for, foreach and Until loop explained with example)

preview_player
Показать описание
Programming languages provide various control structures that allow for more complicated execution paths, especially in scripting. A loop statement, be it any loop, allows us to execute a statement(s) multiple times and in this video below, we explained loop statement in perl which is applicable to most of the programming languages also. It explains while loop, for loop, foreach loop, and until loop with syntax flowchart and example. Please do watch it, and don't forget to ask any doubt if you have while watching the video.
Рекомендации по теме
Комментарии
Автор

@2:13 this is what worked for me (notice the $ before i).
print "$names[$i]";

luvlife
Автор

Can we print only until some strings that we need using foreach loop?

BinduthrayaMatta-xrtz
Автор

Kindly use nice mic to record your voice.

rai
Автор

the for loops example was not it that was to fast with not the best break down.

alvinamana
join shbcf.ru