PERL/C2/for-for-each-loops/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha iaphi sha ka spoken tutorial halor ka “for” bad “foreach Loops” ha ka “Perl”.
00:06 Ha kane ka jinghikai, ngin ia pule shaphang ka: “for” loop ha ka “Perl” bad
00:11 foreach loop ha ka Perl.
00:13 Nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad Perl 5.14.2.
00:21 Ngan sa pyndonkam ruh ia ka “gedit” Text Editor.
00:25 Phi lah ruh ban pyndonkam ia kano kano ka text editor katkum ka jingkwah jong phi.
00:29 Phi dei ban don ia ki jingtip shaphang ki varibles bad comments ha ka “Perl.”
00:33 Lada phim don, sngewbha leit sha ki spoken tutorials kiba iadei ha ka “spoken tutorial” website.
00:40 “Perl” ka ai ki lad ki lynti ha kaba ngi lah ban check ia ka condition kaba iaid shi iaid bad iai bteng na ka bynta ki values kiba bun. Ngi lah ban leh ia kane da ka “loops”.
00:49 Kidon bun jait ki loops ha ka Perl:
00:52 for loop, foreach loop
00:54 while loop bad do-while loop.
00:56 Ha kane ka jinghikai, ngin ia peit ia ka “for” bad “foreach loop”.
01:01 “for” loop ha ka “Perl” lah ban pyndonkam ban execute ia u code na ka bynta katto katne por.
01:07 Ka syntax jong u “for loop” kadei kumne harum:
01:10 for space open bracket variable initialization semicolon condition semicolon increment
01:20 close bracket, shon Enter.
01:22 Open curly brackets,
01:24 U code uban sa shah execute bun sien.
01:28 close curly brackets.
01:30 Mynta to ngin ia peit ia ka nuksa jong ka “for” loop.
01:33 Plie ia ka “Terminal” bad type: gedit forLoop.pl space & (ampersand)
01:42 Bad shon Enter. Kane kan plie ia ka forLoop.pl file ha ka gedit.
01:48 Type u code kumne harum: hash exclamation mark slash u s r slash bin slash perl
01:58 Shon Enter.
02:00 for space open bracket dollar i equals to zero semicolon space dollar i less than or equal to four semicolon space dollar i plus plus close bracket
02:18 space Open curly bracket shon Enter.
02:21 Type: print space double quote Value of i colon <space> dollar i backslash n double quote complete semicolon
02:35 bad shon Enter. Mynta khang ia u curly bracket.
02:39 Shon Ctrl+S ban save ia ka file.
02:42 To ngan batai kaei kaba ka “for” loop ka leh.
02:46 U variable “i” u sdang na u zero.
02:50 Hadien kane, ka condition kan sa check.
02:53 Ha kane ka bynta, ka condition kadei i less than or equal to 4.
02:59 Lada ka condition kadei true, u code uba don hapoh u curly bracket un sa shah execute.
03:05 Kane kamut ba ka print statement ba nyngkong "Value of i colon 0"
03:11 Kan sa paw ha ka terminal.
03:14 Hadien kane, u variable ‘i’ lah pynkiew da 1.
03:18 Bad ka “for” loop condition kan sa check sa shisien.
03:23 Kane ka loop kan sa mih noh lada u value jong u ‘i’ u heh ban ia u 4.
03:29 Ha kane ka bynta, u “for” loop un sa execute ia u for i = 0, 1, 2, 3, bad 4.
03:38 Kaba dei 5 sien katkum ka jingkhein.
03:41 Mynta, phai sha ka terminal.
03:44 Type ia kane harum ban check ia kano kano ka jingbakla ha ka compilation lane ha ka syntax:
03:48 perl hyphen c forLoop dot pl
03:54 bad shon Enter.
03:56 Hangne ka pyni ia ka khubor:
03:58 forLoop.pl syntax OK.
04:01 Te, ngim don ka jingbakla eiei.
04:03 Mynta, to ngin ia execute ia ka “Perl” script da kaba type perl forLoop dot pl bad shon Enter.
04:11 Ka output harum kan sa pyni ha ka terminal.
04:16 Mynta, to ngin ia peit ha ka “foreach” loop.
04:19 Lada ngi kwah ban iaid shi iaid ia ka condition na ka bynta ka “array”, ngi lah ban pyndonkam da u “foreach” loop.
04:25 Ka syntax kadei: foreach space dollar variable space within brackets at the rate array space
04:35 open curly bracket
04:37 perform action on each element of an array shon Enter,
04:42 Khang ia u curly bracket.
04:44 Sngewbha kynmaw: ngin ia pule ia u array, ka initialization jong u array bad ban define ia u array ha ki jinghikai kiba bud.
04:52 Mynta to ngin ia peit ia ka nuksa jong ka “foreach” loop.
04:56 Plie ia ka Terminal bad type gedit foreachLoop dot pl space ampersand bad shon Enter.
05:08 Kane kan plie ia ka foreachLoop.pl file ha ka gedit.
05:12 Type ia u code uba la ai harum:
05:15 hash exclamation mark slash u s r slash bin slash perl bad shon Enter.
05:25 at the rate myarray space equal to space open bracket ten comma twenty comma thirty close the bracket semicolon
05:39 Shon Enter.
05:41 foreach space dollar var space open bracket at the rate myarray close the bracket space
05:52 plie ia u curly bracket shon Enter bad type:
05:56 print space double quotes Element of an array is colon dollar var backslash n double quotes complete semicolon
06:13 Shon Enter bad khang ia u curly bracket.
06:17 Shon Ctrl+s ban save ia ka file.
06:20 To ngan batai kaei kaba une u code u leh. U array “myarray” lah declare.
06:27 U don 3 tylli ki elements 10, 20 bad 30.
06:33 Ha man ka jingiaid jong ka foreach loop, 'dollar var' ($var) un sa don ia uwei u element jong ka array.
06:40 foreach keyword un sa leh biang ia kane ka loop na ka bynta man ki element jong ka array.
06:47 Kata kadei, u code hapoh u curly bracket un sa shah execute na ka bynta man ka “myarray” element.
06:55 Back-slash n (\n) un sa buh ia u prompt ha u lain ba thymmai.
07:00 Kane kamut, ka “element” 10 ba nyngkong kan sa paw ha ka terminal.
07:06 Nangta 20 bad ter ter, haduh ba ki elements baroh lah print lut.
07:12 Kane ka loop kan sa jah hadien ba lah print ia baroh ki elements ha ka “myarray”.
07:17 Mynta, phai sha ka terminal bad type ia kane harum ban check na ka bynta kano kano ka jingbakla jong ka compilation lane ka syntax.
07:24 Type: perl hyphen c foreachLoop dot pl bad shon Enter.
07:32 U lain ba harum un sa paw ha ka terminal.
07:36 Kam don kano kano ka jingbakla ha ka compilation lane ka syntax.
07:38 Te, to ngin ia execute ia ka “Perl” script.
07:41 Type: perl foreachLoop dot pl bad shon Enter.
07:48 Ka output harum kan sa paw ha ka terminal.
07:54 Te, katto ngi lah dep ia ka “for” loop bad “foreach” loop.
07:57 To ngin ia batai kyllum.
07:59 Ha kane ka jinghikai, ngi la pule shaphang-
08:02 for loop bad foreach loop ha ka Perl
08:06 Da kaba pyndonkam ia ki sample programs. Hangne ki kam na ka bynta jong phi-
08:10 Declare ia u “string” kum ‘Spoken Tutorial’ bad
08:13 Print ia u 5 sien.
08:16 Declare ia ka array jong ki rong kum @colorArray = open bracket in single quote red comma white comma blue khang ia u bracket bad
08:32 Print ia ka element jong u array da kaba pyndonkam “foreach” loop.
08:36 Peit ia ka video kaba don ha ka link harum.
08:40 Ka batai kyllum ia ka Spoken Tutorial project.
08:43 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien.
08:48 Ka kynhun jong ka Spoken Tutorial Project: Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials.
08:55 Ka ai certificates sha kito kiba pass ha ka online test.
08:59 Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka contact at spoken hyphen tutorial dot org.
09:07 "Spoken Tutorial" project kadei shi bynta jong ka "Talk to a Teacher" project.
09:12 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India.
09:20 Kham bun ki jingtip halor kane ka mission kidon ha ka spoken hyphen tutorial dot org slash NMEICT hyphen Intro.
09:31 Kyrmen phi sngewtynnad ia kane ka jinghikai halor ka “Perl”.
09:34 Ma nga u Pdiangburom na Shillong, nga pynkut ia kane.
09:36 Khublei shibun.

Contributors and Content Editors

Pdiangburom