PERL/C2/Hash-in-Perl/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiangsngewbha iaphi sha ka spoken tutorial halor ka Hash ha ka PERL. |
00:05 | Ha kane ka jinghikai, ngin ia pule shaphang ka: |
00:09 | Hash ha ka PERL bad |
00:11 | Accessing ia u element jong ka hash. |
00:14 | Na ka bynta kane ka jinghikai, nga pyndonkam da ka: |
00:16 | Ubuntu Linux 12.04 operating system |
00:21 | Perl 5.14.2 bad |
00:24 | gedit Text Editor. |
00:26 | Phi lah ban pyndonkam ia kano kano ka text editor katkum kamon jong phi. |
00:30 | Ban leh ia kane ka jinghikai, phi dei ban don ia ka jingtip jong ki variables & data Structures ha ka PERL. |
00:38 | Ka jingtip shaphang ki comments, loops, conditional statements bad arrays kan long ka jingmyntoi. |
00:46 | Sngewbha leit sha ki spoken tutorials ba iadei ha ka Spoken Tutorial website. |
00:52 | Hash kadei ka thup jong ki data ki bym long ryntih. |
00:56 | Kadei ka key/value ba long shijur bad ka data structure. |
00:59 | Hash keys kilong kyrpang. |
01:01 | Hynrei, ka Hash ka lah ban don ia ki values ba long kumjuh. |
01:05 | Kane kadei ka declaration jong ka hash. |
01:08 | To ngin ia peit kumno ban ioh ia u value jong u key na ka hash. |
01:12 | Ka syntax na ka bynta ban access ia ka value jong u key kadei: |
01:17 | dollar hashName open curly bracket single quote keyName single quote close curly bracket. |
01:26 | To ngin ia pyrshang ban sngewthuh ia ka hash da kaba pyndonkam ia ka sample program. |
01:31 | Nga lah type lypa ia u code ha ka perlHash dot pl file ha ka gedit. |
01:37 | Type ia u code kumba la pyni ha ka perlHash dot pl file jong phi. |
01:42 | Hash ha ka PERL lah declared ryngkat u percentage sign (%). |
01:47 | Kine ki dei ki keys jong u hash |
01:49 | Bad kine kidei ki values jong u hash. |
01:53 | Sngewbha kynmaw: Ban access ia u key jong ka hash, ngi donkam ban pyndonkam ia u dollar sign. |
01:59 | Shon Ctrl + S ban save ia ka file. |
02:02 | Nangta phai sha ka terminal bad execute ia ka Perl script kum: |
02:08 | perl perlHash dot pl |
02:11 | bad shon Enter. |
02:14 | Ka output kadei kumba la pyni ha ka terminal. |
02:19 | Mynta, to ngin ia peit ia u add bad delete jong ki keys na ka hash. |
02:24 | Ka syntax na ka bynta: |
02:26 | Ban add ia u key kadei- dollar hashName open curly bracket |
02:30 | single quote KeyName single quote |
02:34 | close curly bracket equal to $value semicolon. |
02:40 | Ban delete ia u key kadei- delete dollar hashName open curly bracket |
02:46 | single quote KeyName single quote close curly bracket semicolon. |
02:53 | Mynta, to ngin pyrshang ban sngewthuh ia kane da kaba pyndonkam ia ka sample program. |
02:58 | Nga lah type lypa ia u code ha ka hashKeyOperations dot pl file. |
03:05 | Kane kadei ka declaration jong u hash. |
03:08 | Ngin sa ia add, delete ia u keys na une u hash. |
03:13 | Hangne ngin ia add ia u key sha u hash ba lah shna lypa. |
03:18 | Kalong kumba assign ia u value sha u variable. |
03:23 | delete keyword la pyndonkam ban delete ia u key. |
03:27 | Ngi donkam ban pass ia u key ban delete ia u. |
03:31 | Shon Ctrl+S ban save ia ka file. |
03:35 | Phai sha ka terminal bad execute ia ka Perl script kum: |
03:40 | perl hashKeyOperations dot pl |
03:44 | bad shon Enter. |
03:47 | Output kan long kumba la pyni ha ka terminal. |
03:52 | To ngin ia peit ia ka sorting jong u hash keys bad values. |
03:57 | Syntax ban sort keys kadei: |
04:00 | sort open bracket keys percentage hashName close bracket semicolon. |
04:07 | Ha kajuh ka rukom, ngi lah ban sort ia ki hash values kum: |
04:11 | sort open bracket values percentage hashName close bracket semicolon. |
04:18 | To ngin pyrshang ban sngewthuh ia ka jingtreikam jong ka sorting da kaba pyndonkam ia ka sample program. |
04:24 | To ngan phai sha ka sortHash dot pl ha ka gedit. |
04:30 | Type ia u code kumba la pyni ha ka screen, ha ka sortHash dot pl file jong phi. |
04:36 | Hangne, ngi lah declared ia u hash jong ka address. |
04:41 | Hangne, ban sort ia u keys, ngi lah pyndonkam ia u sort inbuilt function ryngkat bad u keys function. |
04:49 | Kane kan sa sort ia u hash keys ha ka alphabetical order. |
04:54 | Ha kajuh ka rukom, ngi lah ban pyndonkam ia ka sort function ha ki values jong u hash. |
04:59 | Sorting lah ruh ban leh ha ki numeric keys and/or values. |
05:05 | Save ia ka file jong phi bad phai sha ka terminal. |
05:09 | Execute ia ka script da kaba type perl sortHash dot pl bad shon Enter. |
05:17 | Ka output kan sa long kumba la pyni ha ka terminal. |
05:22 | Mynta, to ngin ia peit kumno ban ioh ia baroh ki keys bad values jong u hash. |
05:27 | PERL ka ai ia ki inbuilt functions ban wanlam ia baroh ki hash keys bad values. |
05:34 | keys() function lah pyndonkam ha kaban sei ia baroh ki keys jong uhash, |
05:40 | values() function ka pynphai ia ki values jong baroh ki keys katba u |
05:46 | each() function u iaid shi iaid ha u hash bad u pynphai ia u key/value pair na u hash. |
05:53 | To ngin ia pyrshang ban sngewthuh ia kine da kaba pyndonkam ia ka sample program. |
05:57 | Na ka bynta kane, ngin ia pyndonkam ia ka perlHash dot pl script kaba ngi lah shna ha ka jinghikai kaba hashwa ha kane ka jinghikai. |
06:07 | Type ia code harum kumba la pyni ha ka screen. |
06:12 | To mynta ngin ia pyrshang ban sngewthuh ia u code. |
06:15 | keys() function ha u hash u pynphai ia ka array kaba don baroh ki keys jong u hash. |
06:22 | values() function ha u hash ka pynphai ia ka array jong ki values na ka bynta baroh ki keys jong u hash. |
06:30 | each() function u pynphai ia ki shijur ki key/value. |
06:34 | Hangne, ngi lah pyndonkam ia ka while loop. |
06:36 | Kan sa iaid shi iaid ha man ki jur jong ki key/value jong u hash ba la pynphai da u each function. |
06:43 | Shon Ctrl+S ban save ia ka file. |
06:48 | Mynta, to ngin ia execute ia ka script ha ka terminal da kaba type |
06:53 | 'perl perlHash dot pl' |
06:58 | bad shon Enter. |
07:01 | Ka output harum ngin sa iohi ha ka terminal. |
07:05 | Mynta, to ngin ia peit katto katne kiwei pat ki rukom jong ka looping over jong u hash. |
07:10 | Ngi lah ban pyndonkam ia ka foreach loop ban iaid shi iaid haman u key jong u hash. |
07:15 | Nangta leh ia ka set jong ki actions ha man u value jong u key. |
07:20 | Ka syntax kadei kumba la pyni ha ka screen. |
07:24 | Hangne, man ki loop jong ka foreach ba la iaid shi iaid kan sa assign ia u key na u hash sha ka $variable. |
07:32 | Nangta, kan sa pyndonkam ia u$variable ban wanlam ia u value lane ban leh ia ki set jong ki actions. |
07:40 | Ha kajuh ka rukom, ngi lah ban loop over ia ki hash values kumba la pyni ha ka screen. |
07:47 | Ngin ia peit ha ka sample program. |
07:49 | Te, to ngin phai sha ka loopingOverHash dot pl ha ka gedit. |
07:55 | Type ia u code harum kumba la pyni ha ka loopingOverHash dot pl jong phi. |
08:02 | Une u code u pynphai ia uwei u key jong u hash. |
08:07 | Hangne, ha ka bynta jong ngi, |
08:09 | U dollar key ($key) uba nyngkong u don ia ka Department kum u key. |
08:15 | Ha ka jingiaid shi iaid jong u kaba bud jong ka foreach, ka pynphai ia u Name key. |
08:21 | Kynmaw: Hash kadei ka jinglum thup jong ki data ki bym long ryntih. |
08:26 | Te, ki keys ba lah pynphai kin nym long ha ka sequence ba lah batai ha kapor ba shna ia ka hash. |
08:33 | Ka loop ha ki values ka treikam ha kajuh ka rukom. |
08:38 | Shon Ctrl + S ban save ia ka file. |
08:41 | Nangta, phai sha ka terminal bad execute ia ka Perl script kum: |
08:46 | perl loopingOverHash dot pl |
08:50 | bad shon Enter. |
08:53 | Ka output harum lah pyni ha ka terminal. |
08:58 | To ngin ia batai kyllum. Ha kane ka jinghikai, ngi lah pule ia ka: |
09:01 | Hash ha ka PERL bad |
09:03 | Ban access ia ki elements jong u hash |
09:05 | Da kaba pyndonkam ia ki sample programs. |
09:08 | Hangne ka kam na ka bynta jong phi: |
09:11 | Declare ia u hash uba don ia ka student name kum u key |
09:15 | Bad ka percentage jong u ne ka kum ka value. |
09:18 | Loop over ia u hash da kaba pyndonkam ia ki keys(), values() bad each() function. |
09:24 | Nangta print ia ka percentage jong man ki khynnah. |
09:29 | Peit ia ka video kaba don ha ka link harum. |
09:32 | Ka kyllum lang ia ka Spoken Tutorial project. |
09:37 | Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien. |
09:42 | Ka kynhun jong ka Spoken Tutorial Project: Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials. |
09:49 | Ka ai certificates sha kito kiba pass ha ka online test. |
09:53 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka: contact at spoken hyphen tutorial dot org. |
10:02 | Spoken Tutorial project kadei shi bynta jong ka "Talk to a Teacher" project. |
10:06 | La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India. |
10:15 | Kham bun ki jingtip halor kane ka mission kidon ha ka: spoken hyphen tutorial dot org slash NMEICT hyphen Intro. |
10:26 | Kyrmen phi sngewtynnad ia kane ka jinghikai halor ka PERL. |
10:30 | Ma nga U Pdiangburom na Shillong, nga pynkut ia kane. |
10:33 | Khublei shibun. |