PERL/C2/Array-functions/Khasi

From Script | Spoken-Tutorial
Revision as of 23:23, 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 iaphi sha ka spoken tutorial halor ka “Array Functions” ha ka “PERL”.
00:06 Ha kane ka jinghikai, ngin ia pule shaphang ki “array functions” ha ka “PERL” kum:
00:11 push , pop , shift
00:14 unshift , split
00:16 splice bad join
00:18 sort, qw.
00:20 Nga pyndonkam da ka “Ubuntu Linux 12.04” operating system bad “Perl 5.14.2”.
00:28 Ngan sa pyndonkam ruh ia ka “gedit’ Text Editor.
00:32 Phi lah ban pyndonkam kano kano ka text editor katkum kamon jong phi.
00:36 Phi dei ban don ia ki jingtip ba donkam jong ki variables, data Structures bad “arrays” ha ka “PERL”.
00:43 Ki jingtip ia ki “comments, loops” bad “conditional statements” ka ai shuh shuh ia ka jingmyntoi.
00:48 Sngewbha peit ia ki jinghikai jong ka spoken tutorials kiba iadei halor ka “spoken tutorial” website.
00:54 “Perl” ka ai katto katne ki inbuilt “functions.”
00:57 Kine ki functions ki lah ban leh bun ki operations ha ka “array.”
01:02 To ngin ia pule shwa nyngkong kumno ban pyndap bad weng ia ki elements na ka position ba khatduh ha ka “array”.
01:08 Kane lah ban leh da kaba pyndonkam ia u
01:10 “push” function uba pyndap ia ki element ha ka position kaba Khatduh jong ka “array”
01:15 Bad ka “pop” functions kaba weng ia ki element na ka position kaba khatduh jong ka “array”.
01:21 To ngin ia pyrshang ban sngewthuh ia ka “push” bad “pop” functions da kaba pyndonkam ia ka sample program.
01:26 Plie ia ka terminal bad type: gedit perlArray dot pl space ampersand
01:33 Bad shon “Enter”.
01:36 Kane ka plie ia ka 'perlArray dot pl' file ha ka gedit.
01:41 Type ia u code kumba la pyni ha ka screen.
01:45 Hangne, ngi lah declare ia ka “array”kaba ka length ka dei 3.
01:50 “push” function kan thep ia ka element ha ka position kaba khatduh jong ka “array” kata hadien u 3.
01:57 Bad u “pop” function un weng ia u element na ka position kaba khatduh jong ka “array”.
02:04 Ha ka jaka jong ngi, 4 un sa shah weng na ka “array”.
02:08 Shon Ctrl + S ban save ia ka file.
02:11 push function u shim ia artylli ki arguments-
02:14 U argument ba nyngkong sha u push function udei u array ha kaban pyndap ia u element.
02:20 U argument ba ar udei u “element” uba dei ban thep ha ka array.
02:25 Ka syntax jong ka “pop” function kadei kumne harum:
02:29 “pop” function ka shim tang ia uwei u “argument.”
02:32 U dei u “array” uba u “element” u donkam ban shah weng.
02:36 Kynmaw: Ba baroh kine ki functions ki treikam ha ka position ka ba khatduh jong ka “array”.
02:41 Ka “element” kaba la shah weng da u “pop” function lah ban shim ha uwei pat u variable.
02:46 Ka syntax na ka bynta kane kadei $variable space = space pop open bracket @myArray close bracket .
02:57 Mynta leit sha ka terminal bad execute ia ka “Perl script”.
03:01 Type: perl perlArray dot pl bad shon Enter.
03:07 Ka jingmih na kane la pyni ha ka terminal.
03:11 Mynta, to ngin ia peit kumno ban pyndap/weng ia u “element” na ka position banyngkong jong u “array”.
03:18 Lah ban ioh ia kane da kaba pyndonkam-
03:20 unshift function uba pyndap ia u element ha u array ha ka position banyngkong.
03:25 shift function u weng ia u element ba nyngkong na ka array.
03:31 To ngin ia pyrshang ban sngewthuh ia kane da kaba pyndonkam ia ka sample program.
03:35 Ngan plie ia file perlArray dot pl kaba nga lah dep shna lypa
03:39 Type ia u code harum kumba la pyni ha ka screen.
03:43 “unshift” function un sa thep ia u “element” ha ka position ba nyngkong kata hashwa jong u 1.
03:52 “shift” function kan weng ia ka “element” na ka position ba nynkong.
03:57 Ha ka jaka jong ngi, “zero” un sa shah weng.
04:00 Shon Ctrl + S ban save ia ka file.
04:03 Ka unshift function kan shim ia 2 tylli ki arguments-
04:06 Ka argument banyngkong kadei ka array ha kaban pyndap ia u element,
04:10 Ka argument ba ar kadei ka element ka ban pyndap ha ka array .
04:15 shift function u shim tang ia uwei u argument -
04:18 Kane kadei ka “array” ha kaba u “element”u donkam ban shah weng.
04:22 Kynmaw: Baroh ar kine ki functions ki treikam ha ka position ba nyngkong ha ka “array”.
04:27 Ngi lah ban lum ia ki “element” kiba la shah weng da u “shift” function ha katto katne ki variable.
04:33 Ka syntax na ka bynta kane kadei: $variable space = space shift open bracket @myArray close bracket.
04:44 Nangta iaid sha ka terminal bad execute ia ka Perl script.
04:48 Type: perl perlArray dot pl bad shon Enter.
04:54 Ka jingmih kaba paw ha ka terminal lah shah pynthaba.
04:59 Mynta, to ngin ia peit kumno ban weng ia ka “element” na ka position ba la ai jong ka “array.”
05:05 “splice” function ka weng ia ka “element” na ka position ba la ai jong ka “array”.
05:11 Ka “return value” jong kane ka function kadei ka “array” jong ki elements ba lah weng.
05:17 To ngin ia pyrshang ban sngewthuh ia kane da kaba pyndonkam da ka sample program.
05:21 Leit sha ka file “perlArray dot pl” kaba ngi shna hashwa.
05:26 Type ia une u code kumba la pyni ha ka screen.
05:30 Ngi donkam ban ai ia ki “index” na ka jaka ba ngi kwah ban weng ia ka elements bad
05:35 Ka “offset” haduh katno ba ngi kwah ban weng ia ki elements.
05:39 Ha ka jaka jong ngi, ki elements 5 bad 6 kin sa shah weng.
05:44 Nangta leit sha ka terminal bad execute ia ka “Perlscript” da kaba type:
05:49 perl perlArray dot pl bad shon Enter.
05:55 Ka jingmih kalong kumba la pyni ha ka terminal.
05:59 Mynta, to ngin ia peit ia ki katto katne kiwei pat ki “inbuilt functions” jong ki “arrays’”
06:04 “split” functions la pyndonkam ban phiah ia u “string” ha ka “delimiter” ba la ai.
06:10 U return value jong kane ka function u dei u “array”.
06:14 Ki “elements” jong kane ka ‘array” kidei ki bynta ba lah phiah jong ka “string.”
06:19 “join” function u pyniasnoh ia ki “elements” jong ka “array” da kaba pyndonkam ia ki “delimeter” ba la ai.
06:25 U pynphai ia u “string” jong ki “elements” ba la dep pyniasnoh.
06:28 “sort” function u pynbeit ryntih ia ka “array” ha ka alphabetical/numerical order.
06:34 “qw” functions u pynphai ia u “array” jong ki kyntien, ba lah pyniaphiah da u “space” ba lieh.
06:40 Mynta, to ngin pyrshang ban sngewthuh ia baroh kine ki functions da kaba pyndonkam ia ka sample program.
06:45 Phai sha ka terminal bad type:
06:48 gedit arrayFunctions dot pl space ampersand bad shon Enter.
06:55 Type ia u code kumba la pyni ha ka screen.
07:00 Ha kane ka bynta, man ki kyntien jong ki variable “string” un long u “element” jong ka “array”.
07:07 Hangne, man u “element” jong ka “newArray” kin sa iasnoh da u “comma”.
07:12 “sort” function un pynbeit ryntih ia ki “elements” jong ka array ha ka alphabetical order.
07:19 “qw” functions u shna ia u “array” jong ki kyntien ba lah pyniaphiah da u space.
07:25 To ngin ia pyrshang ban sngewthuh ia man ka function.
07:28 “split” function u shim ar tylli ki “arguments”.
07:31 Ka argument banyngkong kadei ka “delimiter” ha kaba u “string” u donkam ban phiah.
07:36 Kaba ar dei u “string” uba donkam ban phiah.
07:39 “Delimiters” lah ban pynithuh da u forward slash, single lane double quotes.
07:45 “join” function u shim 2 tylli ki “arguments”.
07:48 Uba nyngkong udei u “delimiter” ha kaba ki array elements donkam ban pyniasnoh.
07:53 Uba ar udei u “array.”
07:55 “Delimiter” lah ban pynithuh bad buh ha u single lane double qoutes.
07:58 “sort” function u shim tang uwei u “argument” uba dei u “array” uba donkam ban pynbeit ryntih.
08:05 “qw” function u pynphai ia u “array” jong ki kyntien, ba la pyniaphiah da ka “space.”
08:11 Kam da long donkam ban pynithuh ia ki kyntien da ki “qoutes” lada thoh da kaba pyndonkam “qw.”
08:17 Nangta phai sha ka terminal bad execute ia ka “Perl script” da kaba type:
08:23 perl arrayFunctions dot pl
08:26 Bad shon “Enter.”
08:29 Ki jingmih ba harum lah pyni ha ka screen.
08:33 To ngin ia batai kyllum. Ha kane ka jinghikai, ngi lah pule kumno ban:
08:36 Pyndap/weng ia ki “elements” na ka “array”
08:40 Basic functions kiba lah ban leh ha u “array” da ka pyndonkam da ka sample program.
08:46 Hangne ka kam na ka bynta jong phi-
08:48 'script.spoken-tutorial.org/index.php/Perl'
08:54 Phiah ia katei ka string ha u '/ ' (forward slash) delimiter.
08:59 Pyndap https:// haba sdang jong ka “array” kaba shna thymmai.
09:06 Weng ia u element “Perl” na ka array.
09:09 Declare ia u numbar array bad pynbeit ryntih ia ki.
09:12 Peit ia ka video kaba don ha ka link harum.
09:15 Ka batai kyllum ia ka “Spoken Tutorial” project.
09:19 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia hadien.
09:24 Ka kynhun jong ka “Spoken Tutorial” project; ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials.
09:30 Ka ai certificates sha kito kiba pass ha ka online test.
09:34 Na ka bynta ki jingtip ba bniah, sngewbha thoh sha: contact at spoken hyphen tutorial dot org.
09:40 “Spoken Tutorial” project kadei shi bynta jong ka “Talk to a Teacher” project.
09:44 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkat India.
09:51 Kham bun ki jingtip halor kane ka mission kidon ha ka spoken hyphen tutorial dot org slash NMEICT hyphen Intro.
10:02 Kyrmen ba phi sngewtynnad ia kane ka jinghikai halor ka “Perl”.
10:04 Ma nga U Pdiangburom na Shillong nga pynkut ia kane.
10:06 Khublei shibun.

Contributors and Content Editors

Pdiangburom