PERL/C2/Data-Structures/Khasi
From Script | Spoken-Tutorial
Revision as of 23:27, 15 June 2017 by Pdiangburom (Talk | contribs)
Time | Narration |
00:00 | Ngi pdiangsngewbha iaphi sha ka spoken tutorial halor ka “Data Structures” ha ka “Perl”. |
00:05 | Ha kane ka jinghikai, ngi la pule shaphang ka “Data Structures” kaba don ha ka “Perl”. |
00:11 | Hangne, nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad ka Perl 5.14.2. |
00:18 | Ngan sa pyndonkam ruh da ka gedit Text Editor. |
00:22 | Phi lah ban pyndonkam da kano kano ka text editor katkum kamon jong phi. |
00:25 | Phi dei ban don ka jingtip shaphang ki variables ha ka “Perl”. |
00:29 | Ki jingtip shaphang ki “comments, loops” bad “conditional statements” kan long kaba myntoi. |
00:36 | Sngewbha leit sha ki spoken tutorials kiba dei halor ka “Spoken Tutorial” website. |
00:41 | “Perl” kadon 3 jait ki “data structures” |
00:44 | Scalar, Array |
00:46 | Hash, kaba la khot ruh kum ka Associative Array. |
00:50 | Scalar: Kadei ka jait data structure ka shim ia kano kano ka jait data. |
00:56 | Ki jait data ki lah ban long ki “string, number, double” bad kiwei kiwei. |
01:01 | Ka lah ruh ban shim ia ka reference ha ka “array” lane reference ha ka hash.” |
01:06 | Kynmaw: “Reference” ha ka “Perl” ngin sa leh ha ki jinghikai kiba bud. |
01:11 | Scalar kadei ka jait data structure kaba suk kum ban declare ia ka variable. |
01:16 | $count = 12 semicolon. |
01:20 | $string = in single quote 'I am scalar of type string' semicolon. |
01:26 | Ngi lah ban leh ia kine ki operations harum halor ka scalar. |
01:30 | Assign ia u value ha u. |
01:32 | Assign ia ka scalar na uwei sha uwei pat. |
01:35 | Arithmetic operations ha ka jait u number jong ki scalars kum u add, subtract bad kiwei kiwei. |
01:41 | String operation ha ka string scalar kum concatenation, substr bad kiwei kiwei. |
01:48 | Mynta, to ngin ia peit ia ka nuksa jong ka scalar data structure. |
01:52 | Phai sha ka terminal bad type: gedit scalars dot pl space & (ampersand) bad shon Enter. |
02:01 | Kane kan plie ia ka 'scalars dot pl' file ha ka gedit. |
02:05 | Type ia u code harum kumba la pyni ha ka screen. |
02:09 | Kane kadei ka declaration bad ka assignment jong ka scalar. |
02:13 | Kine kidei katto katne ki arithmetic operations kiba lah ban leh ha ka jait number jong ka scalar. |
02:19 | Kine kidei ki string operations kiba lah ban leh ha ka jait string jong ka scalar. |
02:25 | substr kadei ka PERL function kaba ai ia shi bynta jong ka string kum ka output. |
02:30 | Hangne, index 0 (zero) ka pynithuh ia shi bynta jong ka string, kata naduh na ka jaka ba ngi kwah ban sdang ia ka extraction jong ka string. |
02:39 | Bad, 11 ka pynithuh ia ka offset haduh ka jaka ba ngi kwah ba ka string kan don ha ka output. |
02:46 | Shon Ctrl + s ban save ia ka file. |
02:50 | Nangta phai sha ka terminal bad execute ia ka Perl script kum: |
02:55 | perl scalars dot pl bad shon Enter. |
03:00 | Ka output kaba pyni ha ka terminal ka la shah pynthaba. |
03:05 | Mynta, to ngin ia peit ia ka array data structure ha ka PERL. |
03:09 | Array: kadei ka lis jong ki elements. |
03:12 | Elements ki lah ban long ki string, number bad kiwei kiwei. |
03:16 | Kadon ia ka index kaba pyndonkam ha kaban leh ia bun jait ki operations ha ka array. |
03:22 | Index ka sdang da u zero. |
03:25 | Ym kum kiwei kiwei ki programming languages, ym donkam ban da declare ia ka array lane ka jingjrong hashwa ban pyndonkam ia ka ha ka Perl. |
03:33 | Perl array ka iar lane ka rit katkum ki elements kiba la pyndap lane lah weng na ka. |
03:39 | Ka syntax ban thoh ia ka array kadei: |
03:41 | at the rate (@) variableName space equal to space open bracket lis jong ki elements kiba lah pyniakhlad da u comma close bracket semicolon. |
03:54 | Mynta, to ngin ia peit ia ka nuksa jong ka “array” data structure. |
03:57 | Phai sha ka terminal bad type: gedit perlArray dot pl space & bad shon Enter. |
04:08 | Kane kan plie ia ka perlArray dot pl file ha ka gedit. |
04:12 | Type ia u code harum kumba la pyni ha ka screen. |
04:18 | Une udei u number array uba don ia ki jait elements jong ka number. |
04:23 | Une udei u string array uba don ia ki jait elements jong ka string. |
04:29 | Une u array udon ia baroh ar ki jait elements jong number bad string. |
04:34 | Kane ka nuksa ka pyni ia bun jait ki arrays ha ka Perl. |
04:39 | Kane kadei kumno ba ngin print ia ka array ha ka Perl. |
04:43 | Shon Ctrl + S ban save ia ka file. |
04:47 | Nangta phai sha ka terminal bad execute ia ka Perl script kum: |
04:52 | perl perlArray dot pl bad shon Enter. |
04:59 | Ka output harum ka la paw ha ka terminal. |
05:04 | Mynta, to ngin ia peit ia ka Hash data structure ha ka Perl. |
05:08 | Ia ka Hash la khot ruh ka Associative array. |
05:12 | Kadei ka Key - Value pair data structure. |
05:15 | U Key ha ka hash u long kyrpang. |
05:18 | Lada u juh u key lah pyndap arsien, te ka value jong uta u key un sa shah kylliang da u value uba kham thymmai ba lah assign sha u key. |
05:28 | U Value lah ban duplicate. |
05:30 | U buh ruh ia u “value” jong uno uno u jait data. |
05:34 | Ka syntax jong u hash kadei: |
05:36 | percentage variable name space equal to space open bracket |
05:41 | Shon Enter . single quote key Name single quote space equal to greater than sign space Value comma |
05:50 | Shon Enter |
05:52 | single quote key Name single quote space equal to greater than sign space Value |
05:58 | Shon Enter |
06:00 | close bracket semicolon. |
06:03 | Mynta to ngin ia peit ia ka nuksa jong ka “hash” data structure. |
06:07 | Phai sha ka terminal bad type: |
06:10 | gedit perlHash dot pl space & bad shon Enter. |
06:18 | Kane kan sa plie ia ka 'perlHash dot pl' file ha ka gedit. |
06:22 | Type ia u code harum kumba la pyni ha ka screen. |
06:27 | Une u “hash” u pynithuh ia ka mark ba la ioh ha ka subjek. |
06:31 | Kane ka nuksa ka pyni ia ka jingpyndonkam jong ka “hash”. |
06:35 | Mynta, to ngin ia peit kumno ban print ia ka “hash”. |
06:38 | Ia mynta, shu kynmaw ia ka rukom ba nga print ia ka “hash.” |
06:42 | Ki jingbatai kiba bniah yn sa ai ha ka jinghikai kaba bud. |
06:47 | Shon Ctrl + S ban save ia ka file. |
06:50 | Nangta phai sha ka terminal bad execute ia ka “Perl script” kum: |
06:55 | perl perlHash dot pl bad shon Enter. |
07:01 | Ka output harum ka lah paw ha ka terminal. |
07:05 | To ngin ia batai kyllum. Ha kane ka jinghikai, ngi lah pule shaphang: |
07:09 | scalar, Array bad |
07:11 | Hash Data Structure ha ka Perl, |
07:13 | Da kaba pyndonkam da ki sample programs. |
07:15 | Kadon ka kam na ka bynta jong phi- |
07:17 | Declare ia u “scalar variable” |
07:19 | Assign ia u value jong ka type float ha u bad nangta print ia u. |
07:23 | Declare bad print ia u array jong ki 'Red', 'Yellow' bad 'Green'. |
07:28 | Declare bad print ia u “hash” jong Employee Name bad ka department jong u. |
07:33 | Hint: 'Employee' =>(equal to greater than sign) 'John' comma |
07:38 | 'Department' =>(equal to greater than sign) 'Engineering'. |
07:42 | Peit ia ka video kaba don ha ka link harum. |
07:46 | Ka batai kyllum ia ka Spoken Tutorial project. |
07:49 | Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien. |
07:53 | Ka kynhun jong ka Spoken Tutorial project: Ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials |
07:59 | Ka ai certificates sha kito kiba pass ha ka online test. |
08:03 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka: contact at spoken hyphen tutorial dot org. |
08:10 | "Spoken Tutorial" project kadei shi bynta jong ka "Talk to a Teacher" project. |
08:15 | La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India. |
08:22 | Kham bun ki jingtip halor kane ka mission kidon ha ka: spoken hyphen tutorial dot org slash NMEICT hyphen Intro. |
08:33 | Kyrmen ba phi sngewtynnad ia kane ka jinghikai halor ka “Perl”. |
08:35 | Ma nga U Pdiangburom na Shillong, nga pynkut ia kane. |
08:38 | Khublei shibun. |