PERL/C2/Arrays/Khasi

From Script | Spoken-Tutorial
Revision as of 23:25, 15 June 2017 by Pdiangburom (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka spoken tutorial halor ki “Arrays” ha ka “Perl.”
00:06 Ha kane ka jinghikai, ngin ia pule shaphang:
00:09 Index jong ka array
00:11 Ka jingjrong jong ka array
00:13 Accessing elements jong ka array
00:16 Looping over ia ka array
00:18 Sequential Array bad
00:20 Array Slicing.
00:22 Hangne, nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad ka Perl 5.14.2.
00:30 Ngan sa pyndonkam ruh da ka “gedit” Text Editor.
00:34 Phi lah ban pyndonkam ia kano kano ka text editor katkum kamon jong phi.
00:37 Phi dei ban don ia ka jingtip ba donkam jong ki variables, comments & data Structures ha ka Perl.
00:43 Ka jingtip shaphang ki loops bad ki conditional statements kan long ka jingmyntoi.
00:48 Sngewbha leit sha ki spoken tutorials kiba iadei halor ka “Spoken Tutorial” website.
00:54 Array kidei ki simple data structure kiba don ia ki elements jong kino kino ki jait datatype.
00:59 Array index ki sdang barabor na u zero.
01:03 Ha ka “Perl”, kam da long donkam ban ba batai ia ka jingjrong jong ka array.
01:08 Ka jingjrong jong ka Array ka heh/ ka rit ha kapor bad ynda la pyndap/weng ia ki elements na ki.
01:15 Ka syntax ban batai ia ka array kadei:
01:18 @myArray equal to open bracket 1 comma 2 comma 3 comma single quote abc single quote comma 10.3 close bracket semicolon.
01:31 Ka index ba khatduh jong ka array lah ban ioh na kane ka command:
01:35 $#myArray
01:38 To ngin ia pyrshang ban sngewthuh ia kane da kaba pyndonkam ia ka sample program.
01:42 Plie ia ka terminal bad type:
01:44 gedit arrayIndex dot pl space ampersand
01:50 Bad shon “Enter.”
01:52 Kane kan plie ia ka arrayIndex dot pl file ha ka geditor.
01:57 Type ia ki code kiba lah pyni ha ka screen
02:02 Hangne, ngi lah pynithuh bad batai ia ka array kaba don 5 tylli ki elements.
02:07 Kumba ka “array index” ka sdang na u zero, ka index value ba khatduh kan dei 4
02:14 Kata u numbar jong ki elements uba dei 5, minus 1.
02:18 Shon Ctrl+S bansave the file.
02:22 Mynta, leit sha ka terminal bad execute ia ka Perl script.
02:26 Type: perl arrayIndex dot pl
02:30 Bad shon “Enter.”
02:32 Ka output kan long kumba la pyni ha ka terminal.
02:37 Mynta, to ngin peit kumno ban ioh ia ka jingjrong jong ka array ha ka “Perl”.
02:41 Kidon shibun ki rukom ha kaba ngi lah ban ioh ia ka jingjrong jong ka array-
02:46 Index jong ka array + 1 kata $#array + 1.
02:53 Pyndonkam ia ka PERL inbuilt scalar function; kata scalar open bracket @array close bracket.
03:02 Assign array ha ka scalar variable kata $arrayLength = @array .
03:09 To ngin ia peit ia ka jingbatai halor ka jingjrong jong ka array da kaba pyndonkam da ka sample program.
03:14 Phai sha ka terminal bad type:
03:18 gedit arrayLength dot pl space ampersand bad
03:24 Shon “Enter.”
03:27 Type ia u code kumba la pyni ha ka screen.
03:32 Hangne ngi lah pyni bad batai ia ka array kaba don 5 tylli ki elements.
03:38 Te, ka ouput kan pyni 5.
03:41 Kiba lah shah pynthaba kidei ki rukom bapher bapher ban wad ia ka jingjrong jong ka array ha ka “Perl”.
03:47 Sngewbha kynmaw: Ngi lah “concatenated” ia ka output ha ka “print” statement da kaba pyndonkam ia u comma.
03:53 Shon Ctrl + S ban save ia ka file.
03:57 Mynta, to ngin ia execute ia ka script.
03:59 Phai sha ka terminal bad type:
04:02 perl arrayLength dot pl bad shon Enter.
04:07 Ka output kan long kumba la pyni ha ka terminal.
04:12 Mynta, to ngin pyrshang ban sngewthuh kumno ban access ia iwei iwei i element ha ka array.
04:18 Indexing lah ban pyndonkam ban access ia ki elements jong ka array.
04:22 To ngin ia peit ia ka nuksa na ka bynta ban access ia ki elements jong ka array ha ka:
04:27 Position ba nyngkong, ba khatduh
04:29 Bad kano kano ka position.
04:32 Phai sha ka terminal bad type:
04:35 gedit perlArray dot pl space ampersand
04:42 Bad shon “Enter.”
04:45 Type ia u code kumba la pyni
04:49 Sngewbha kynmaw: myArray lah pynithuh bad u @ (at the rate) sign.
04:54 Hynrei, ban access ia ka array element ngi donkam ban pyndonkam ia u $(dollar) sign.
04:59 Ban access ia ka element ha kano kano ka position, ngi donkam ban pass ia ka “index” sha ka array.
05:07 Hangne, ban access ia ka element ba nyngkong jong ka myArray,
05:11 Zero lah pass kum ka index
05:16 Ban access ia ka element ba khatduh jong ka “myArray”, ngi lah pass ia ka index ba khatduh jong ka “myArray.”
05:24 Kynmaw, ngi lah pule ia kane ha ka bynta ba shakhmat.
05:28 Shon Ctrl + S ban save ia ka file.
05:30 Phai sha ka terminal bad execute ia ka script kum:
05:36 perl perlArray dot pl
05:41 Bad shon “Enter.”
05:43 Ka output kan long kumba lah pyni ha ka terminal.
05:47 Mynta, to ngin pyrshang ban sngewthuh kumno ban “loop” over ia man ki element jong ka array.
05:52 Kidon ar tylli ki rukom jong ka “looping over” ia ka array:
05:56 Pyndonkam “for” loop
05:58 Pyndonkam “foreach” loop.
06:01 To ngin ia pule kumno ban pyndonkam ia kine ki loop ban iaid shi iaid ha ka array da kaba pyndonkam ia ka sample program.
06:07 Na ka bynta kane, phai sha ka terminal bad type:
06:11 gedit loopingOverArray dot pl space ampersand
06:17 Bad shon “Enter”.
06:20 Type ia u code kumba la pyni ha ka screen.
06:24 Hangne, ngi print ia man ki element jong u array da kaba iaid shi iaid ia ka index.
06:31 ka “for” ka loop kan sa execute haduh ba u value jong u ‘i’ variable u poi shaduh u “index” ba khatduh jong ka array.
06:38 Hangne, “foreach” loop kan sa execute na ka bynta man ki element jong ka array.
06:46 Shisien ba ka array ka lah kot sha u element ba khatduh, kan sa mih na ka “foreach” loop.
06:53 Sngewbha kynmaw: Ba lada phim pat bna ia ka “for” bad “foreach” loops,
06:58 Sngewbha leit sha ka spoken tutorials ba iadei ha ka “spoken tutorial” website.
07:04 Mynta, shon Ctrl + S ban save ia ka file.
07:07 Nangta phai sha ka terminal bad execute ia ka script kum:
07:12 perl loopingOverArray dot pl
07:15 Bad shon “Enter.”
07:19 Ka output kan sa long kumba la pyni ha ka terminal.
07:24 Ha ka Perl, ngi lah ban declare ia ka sequential array kum:
07:28 @alphaArray = open bracket a dot dot d close bracket semicolon
07:37 kata alphaArray un don ia ki elements 'a', 'b', 'c' bad 'd'.
07:44 Ha kajuh ka rukom ka, @numericArray equal to open bracket 1 dot dot 5 close bracket semicolon kalong kumjuh kum @numericArray equal to open bracket 1 comma 2 comma 3 comma 4 comma 5.
08:03 Perl ka ai ruh ia ki array slicing.
08:06 Kane kam dei kaei kaei ruh em hynrei kadei ban sei ia ki bynta jong ka array bad buh ia ki ha kawei pat ka array ba thymmai.
08:13 @array = 19 comma 23 comma 56 comma 45 comma 87 comma 89 close bracket semicolon
08:27 @newArray = @array open square bracket 1 comma 4 close square bracket semicolon
08:38 Hadien ka slicing, ka newArray kan sa long kum:
08:42 @newArray = open bracket 23 comma 87 close bracket semicolon
08:51 To ngin ia batai kyllum. Ha kane ka jinghikai, ngi lah pule kumno ban:
08:55 Wad ia ka “index” jong ka array
08:57 Wad ia ka jingjrong jong ka array
08:59 “Access” ia ki elements jong ka array
09:01 “Loop” over ia ka array
09:03 Sequential Array bad
09:05 Array Slicing, da kaba pyndonkam da ki sample programs.
09:07 Hangne ka kam na ka bynta jong phi:
09:10 Declare ia ka array jong ka rong u sympyllieng.
09:13 Print ia ka 4th element jong kane ka array.
09:16 Print ia ka jingjrong bad ka index ba khatduh jong kane ka array.
09:19 Loop over ia man ki element jong ka array da kaba pyndonkam “for” & “foreach” loops.
09:25 Declare ia ka array kum @myArray = open bracket 1..9 close bracket semicolon. Bad nangta shna ia ka array jong ki odd number, na ka array ba hajrong da kaba pyndonkam array slicing.
09:41 Peit ia ka video kaba don ha ka link ba lah ai harum.
09:44 Ka kyllum lang ia ka Spoken Tutorial project.
09:48 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien.
09:53 Ka kynhun jong ka Spoken Tutorial project: * Ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials
09:58 Ka ai certificates sha kito kiba pass ha ka online test.
10:02 Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka: contact at spoken hyphen tutorial dot org.
10:09 " "Spoken Tutorial" project kadei shi bynta jong ka "Talk to a Teacher" project.
10:13 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India.
10:20 Kham bun ki jingtip halor kane ka mission kidon ha ka spoken hyphen tutorial dot org slash NMEICT hyphen Intro.
10:31 Kyrmen ba phi sngewtynnad ia kane ka jinghikai halor ka “Perl”.
10:35 Ma nga U Pdiangburom na Shillong, nga pynkut ia kane.
10:37 Khublei shibun.

Contributors and Content Editors

Pdiangburom