PERL/C3/Referencing-and-Dereferencing/Khasi

From Script | Spoken-Tutorial
Revision as of 23:27, 25 July 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 Referencing bad Dereferencing in Perl.
00:07 Ha kane ka jinghikai, ngin ia pule shaphang ki:

Scalar References Array References Hash References Dereferences bad Kumno ban add, remove, access ia ki elements jong ki array/hash references.

00:22 Na ka bynta kane ka jinghikai, nga pyndonkam da ka:

Ubuntu Linux 12.04 operating system Perl 5.14.2 gedit Text Editor

00:33 Phi lah ban pyndonkam kano kano ka text-editor katkum kamon jong phi.
00:37 Phi dei ban don ia ka jingtip shaphang ka:

Perl programming Array functions bad Hash functions.

00:43 Lada phim don, te sngewbha leit sha ki tutorials ba iadei ha ka Perl ha kane ka website.
00:49 Kaei ka Reference?
00:51 Ka reference kadei ka pointer lane ka address sha ka variable, array, hash lane ka subroutine.
00:58 Kam don lypa ia ka data ha ka.
01:01 Reference u scalar value barit bad basuk.
01:05 Reference kan pynbha ia ka jingtreikam jong u Perl code ynda phi pass lane pynphai ia ki data-structures ba heh.
01:12 Ka pynduna ia ka jingbam ka memory namar ka pass ia ka reference sha ka subroutine ban ia kaba ka pass ia u value.
01:18 Ka suk ban pynbit pynbiang ia ki Perl data structures kiba eh.
01:22 To ngin ia pule kumno ban shna ia ka reference.
01:25 Ngi lah ban shna ia ka reference na ka bynta kano kano ka variable, subroutine lane value, da kaba buh ia u backslash (\) hakhmat jong u.
01:33 U scalar variable udei u reference da u backslash bad u dollar sign ($) kumba la pyni hangne.
01:39 U array variable udei u reference da u backslash bad u at the rate(@) symbol.
01:45 U hash variable udei u reference da u backslash bad u percentage(%) symbol kumba lah pyni ha kane ka nuksa.
01:53 Kaei ka dereference?
01:55 Ynda u reference u shah dereference, u value uba dei u la shah pynphai.
02:00 Dereference lah leh da kaba buh ia u reference variable hapoh ki curly brackets
02:06 Bad hashwa u curly bracket ba sha kadiang bad u character ba la pynithuh ia u jait reference.
02:12 To ngin ia peit kumno ban dereference ia ki variables.
02:16 U scalar variable la dereferenced da u dollar sign ($) bad ki curly brackets.
02:21 U array variable la dereferenced da u at the rate (@) symbol bad ki curly brackets.
02:27 U hash variable la dereferenced da u percentage(%) symbol bad ki curly brackets.
02:33 To ngin ia peit ia ka simple program na ka bynta ka Scalar reference bad dereference.
02:38 To ngan plie ia ka sample program ha ka 'gedit' Text editor.
02:43 Plie ia ka terminal bad type: gedit scalarRef dot pl ampersand bad shon Enter.
02:50 Type ia u code harum kumba la pyni ha ka screen.
02:55 To ngan batai ia u code.
02:57 U lain ba nyngkong u declare ia u scalar variable '$a' bad la initialized sha 10.
03:03 Kumba la batai hashwa, u scalar variable udei u reference da u backslash bad u dollar sign ($).
03:10 Kane ka lain kan print ia ka memory address jong u variable uba lah shna kum u reference.
03:16 Ban print ia u value badei, u variable u dereference da ki curly brackets ba lah buh hashwa da u '$'.
03:23 Hangne, uref() function un sa pynphai ia u jait reference kum u scalar lane array lane hash.
03:30 Mynta, shon Ctrl+S ban save ia ka file.
03:34 To ngin ia execute ia ka program.
03:36 Phai sha ka terminal bad type: perl scalarRef dot pl bad shon Enter.
03:43 Ka output kadei kumba la pyni.
03:46 Ka lain ba nyngkong ka pyni ia ka memory address ha kaba la buh ia u value 10.
03:51 Ka lain kaba ar ka pynphai ia u value kaba dei 10.
03:55 Ref() function ka pynphai ia u "SCALAR" kum ka output.
03:59 Hadien kane, to ngin ia pyrshang ban sngewthuh kumno ban shna ia ka reference bad dereference array da kaba pyndonkam ia ka sample program.
04:07 Nga lah don lypa ia ka sample program. To ngan plie ia ka ha ka 'gedit' Text editor.
04:13 Ha ka terminal, type: gedit arrayRef dot pl ampersand bad shon Enter.
04:20 Type ia u code harum kumba la pyni ha ka screen, ha ka arrayRef dot pl file.
04:26 To mynta ngan batai ia u code.
04:28 Hangne, ha ka lain ba nyngkong, nga lah declared ia u array @color bad initialized ia u da lai tylli ki values.
04:35 La reference da u backslash @color kaba dei ka kyrteng jong ka array bad la assign sha u $colorRef.
04:42 Ka print statement kan print ia ka reference value bad ka dereference value.
04:47 Mynta, shon Ctrl+S ban save ia ka file.
04:51 To ngin ia execute ia ka program.
04:53 Phai biang sha ka terminal bad type: perl arrayRef dot pl bad shon Enter.
05:00 Ka output kadei kumba la pyni hangne.
05:04 Ka lain ba nyngkong ka pyni ia ka output jong ka memory address jong u variable ba lah shna kum ka reference.
05:10 Ka lain ba ar ka pyni ia ka value badei kata ka dereference.
05:16 Hadien kane, ngin sa iapeit kumno ban declare ia ka direct reference na ka bynta ka array.
05:21 To ngin ia phai biang sha ka program jong ngi.
05:24 Nga lah pyn kylla ia ka program ba lah don lypa ban pyni ia ka direct reference na ka bynta ka array.
05:29 Phi lah ban shna ia u direct reference na ka bynta ka array da kaba pyndonkam ia u square brackets [] kumba la pyni.
05:35 Pyndonkam arrow operator (->) ban dereference.
05:39 print statement kan sa print "Green" kum ka output.
05:43 Hangne, ka print statement ka shim ia u value jong ka index[1]. kata 'Green' ha ka program jong ngi.
05:50 Shon Ctrl+S ban save ia ka file.
05:54 Phai biang sha ka terminal bad type: perl arrayRef dot pl bad shon Enter ban execute.
06:03 Ngan pyni ia ka nuksa halor kumno ban pyndonkam ia ka direct hash reference ha kajuh ka code file.

Te, to ngin ia phai sha ka gedit.

06:11 Phi lah ban shna ia ka direct reference ban hash da kaba pyndonkam ia ki curly brackets {} kumba la pyni hangne.
06:18 Pyndonkam arrow operator (->) ban dereference ia u. “Name” udei u hash key.
06:24 Ha kapor ba execute ia une u block jong u code, baroh ar ki print statements kin print "Sunil" kum ka output.
06:31 Hadien kane ngin sa iohi kumno ban pyndap, weng, access ia ki elements sha ka array reference da ka sample program.
06:39 Nga lah don lypa ia ka sample program. To ngan plie ia ka ha ka gedit text-editor.
06:45 Plie ia ka terminal bad type: gedit arrayRefadd dot pl ampersand bad shon Enter.
06:54 La plie mynta ia ka 'arrayRefadd.pl' file ha ka gedit. Type ia u code kumba la pyni hangne, ha ka file jong phi.
07:02 Ka lain ba nyngkong ka pynsdang ia ka array.
07:06 Ngi lah reference ia u array da u backslash @numarray bad la assign sha u $ref.
07:13 Mynta, ngin sa iohi kumno ban access ia kawei ka element na ka array reference.
07:19 Ngi donkam ban pyndonkam ia u array index ha ki square brackets “[ ]” ban access ia u value bad u arrow operator (“->”) ban dereference ia u.
07:28 Ka print statement kan print ia u value jong ka index [0].
07:32 push() function ka pyndap ia ki elements ha ka position ba khatduh jong ka array reference.

Ha ka bynta jong ngi, 5, 6, 7 lah pyndap sha bakut jong ka array ba lah don lypa 1, 2, 3, 4.

07:47 Kane ka print statement ka pyni ia ka output, hadien ba lah dep pyndap sha ka array reference.
07:53 pop() function ka weng ia ka element na ka position ba khatduh jong ka array reference.
07:58 Ha ka nuksa jong ngi, 7 un sa shah weng na ka array reference ba lah don lypa.
08:03 print statement kan sa pyni ia ka output hadien ba lah dep pyndam na ka array reference.
08:08 Mynta, shon Ctrl+S ban save ia ka file.
08:11 To ngin ia execute ia ka program.
08:14 Phai biang sha ka terminal bad type: perl arrayRefadd dot pl bad shon Enter.
08:22 Ka output kadei kumba la pyni hangne.
08:26 Mynta, to ngin ia peit ia kawei pat ka sample program ban pyndap, weng, access ia ki elements jong u hash reference.
08:34 Ha ka terminal, type: gedit hashRefadd dot pl ampersand bad shon Enter.
08:42 Kane kan sa plie ia ka file 'hashRefadd.pl' ha ka gedit.
08:47 To ngan batai ia ka sample program.
08:50 Nga lah declared ia u direct hash reference uba lah ban buh ha u scalar variable $weektemp.
08:57 Nga lah pyndonkam ia ki curly brackets ban mihkhmat ia u hash reference bad u arrow operator ban dereference.
09:04 Une u code u buh ia ki values jong ka temperature naduh Monday haduh Friday.
09:09 Nga pyndonkam ia ki “keys” built-in function ban loop ia ki keys jong u hash.
09:15 print statement kan print ia man u element jong u hash.
09:19 Ngi lah ban access ia u value jong u element kumba la pyni hangne.
09:25 print statement kan print ia ka temperature ha ka sngi Monday.
09:29 Mynta, save ia ka file.
09:32 Phai sha ka terminal bad type: perl hashRefadd dot pl bad shon Enter ban iohi ia ka output.
09:41 Ki hash keys bad ki hash values lah buh ha ka random order.
09:46 Ka output ba lah pyni kam iadei bad ka order ha kaba lah pyndap ia ki.
09:52 Da kane, ngi poi sha kaba kut jong kane ka jinghikai. To ngin ia batai kyllum.
09:57 Ha kane ka jinghikai, ngi lah pule shaphang ki:

Scalar References Array References Hash References Dereferences bad Kumno ban pyndap, weng, access ia ki elements jong ki array/hash references ryngkat ki nuksa.

10:14 Hangne ka kam na ka bynta jong phi. Pyndap ia ki keys ba thymmai “Saturday” bad “Sunday” ha u hash weektemp, ha ka hashRefadd dot pl file.
10:24 Pyndam ia u “Saturday” key ha kaba kut.
10:27 Print hash weektemp.
10:30 Save bad execute ia ka program. Mynta check ia ka result.
10:35 Ka video ha ka link harum ka kyllum lang ia ka Spoken Tutorial project. Sngewbha download bad peit ia ka.
10:42 Ngi pynlong ia ki workshops bad ai ia ki certificates sha kito kiba pass ha ka online test. Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ngi.
10:51 Ia ka Spoken Tutorial project la bei tyngka da NMEICT, MHRD, Sorkar India.

Kham bun ki jingtip halor kane ka mission kidon ha kane ka link ba la ai.

11:02 Ma nga U Pdiangburom na Shillong, nga pynkut ia kane, Khublei shibun.

Contributors and Content Editors

Pdiangburom