PERL/C2/Variables-in-Perl/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiangsngewbha iaphi sha ka spoken tutorial halor ka Variables in Perl. |
00:06 | Ha kane ka jinghikai, ngin ia pule shaphang ki variables ha ka Perl. |
00:12 | Nga pyndonkam da ka Ubuntu Linux12.04 operating system |
00:18 | Bad ka Perl 5.14.2 kata: Perl revision 5, version 14, and subversion 2. |
00:26 | Ngan sa pyndonkam ruh ia ka gedit Text Editor. |
00:30 | Phi lah ban pyndonkam da kano kano ka text editor katkum ka jingkwah jong phi. |
00:34 | Variables ha ka Perl: |
00:37 | Variables la pyndonkam na ka bynta ban buh ia ki values kum ki text strings, numbers lane ki arrays. |
00:44 | Shisien ba ka variable lah declare, lah ban pyndonkam shi pyndonkam biang ha ka script. |
00:50 | Scalar u ieng na ka bynta uwei u value bad u lah ban buh tang ia ki Scalars. |
00:56 | Scalar variables lah declare da kaba pyndonkam $ (dollar) symbol. |
01:00 | To ngin ia peit ia ka variable declaration. |
01:03 | U variable lah ban declare kumne harum: dollar priority semicolon. |
01:09 | Variable names ha ka Perl ka lah ban don bun tylli formats. Variables kidei ban sdang da u letter lane underscore (_). |
01:18 | Bad u lah ban don ia ki letters, digits, underscores lane baroh lai tylli. |
01:24 | Ki Variables ba lah declared da ki CAPITAL letters kidon ka jingmut ba kyrpang ha ka Perl. |
01:30 | Te, ialeh ban nym declare ia ki variable da kaba pyndonkam ia ki dak heh. |
01:34 | Mynta plie ia ka Terminal bad type: gedit variables dot pl ampersand(&) |
01:44 | U ampersand un sa unlock ia ka command prompt ha ka terminal. Mynta shon Enter. |
01:50 | Kane kan sa plie ia ka variables.pl file ha ka gedit text editor. |
01:56 | dot pl (.pl) kadei ka default extension jong ka Perl file. |
02:01 | Type ia kane harum ha ka file: dollar priority semicolon bad shon Enter. |
02:10 | Te ngi lah declare ia ka variable priority. |
02:13 | Phim donkam ban declare ia u variable hashwa ban pyndonkam ia u; |
02:18 | Phi lah ban shu pyndonkam beit ia u ha u code jong phi. |
02:21 | Mynta to ngin ia assign ia u numerical value sha ka variable priority. |
02:25 | Na ka bynta kane, type: dollar priority space equal to space one semicolon |
02:32 | Bad shon Enter. |
02:34 | Hadien kane, type: |
02:36 | print space double quote Value of variable is: dollar priority backslash n close double quote semicolon bad shon Enter. |
02:50 | backslash n udei u "new line" character. |
02:53 | Mynta save ia kane ka file kum variables.pl ha kano kano ka jaka. |
03:02 | Ha kaba iadei bad nga, kan sa save ha ka home/amol directory. Mynta save ia kane ka file. |
03:10 | Mynta, to ngin ia pynkylla ia ka permission jong ka variables.pl file kaba ngi dang shu dep shna. |
03:18 | Ban leh ia kane, ha ka Terminal type, chmod 755 variables dot pl |
03:27 | Kane kan sa ai ia ka "read", "write" & "execute" rights ia ka file. |
03:32 | Ban lum thup ia kane ka Perl script, ha ka Terminal, |
03:36 | type: perl hyphen c variables dot pl |
03:42 | Hyphen c switch ka lum thup ia ka Perl script na ka bynta kano kano ka compilation/syntax error. |
03:49 | Mynta shon Enter. |
03:51 | Kane ka batai ia ngi ba kam don ka syntax error ha ka script jong ngi. |
03:56 | Mynta to ngin ia execute ia ka Perl script da kaba type perl variables dot pl bad shon Enter. |
04:06 | Ka output kaba paw ka lah shah pynthaba. |
04:10 | Ngi lah ruh ban assign ia u string value sha ka variable kaba ngi declare. |
04:15 | Phai biang sha ka Text editor window. |
04:18 | Ha ka jaka jong ka dollar priority equal to one; type: |
04:22 | dollar priority equal to in single quotes high; |
04:28 | Sngewbha kynmaw ba ki assignments ki lah evaluate na kamon sha kadiang. |
04:34 | U scalar u lah ban buh ia ki data jong kano kano ka jait, la kalong u string, u number. |
04:38 | Save ia kane ka file bad lum thup ia ka script sa shisien da kaba type: |
04:45 | perl hyphen c variables dot pl mynta shon Enter. |
04:51 | Kane ka batai ia ngi ba kam don ka syntax error. |
04:55 | Execute ia ka script da kaba type perl variables dot pl bad shon Enter. |
05:03 | Ka output kadei kumba la pyni. |
05:07 | Mynta phai biang sha ka Text Editor window. |
05:10 | Phi lah ruh ban pyndonkam ia ki scalars within a double-quoted string |
05:15 | dollar priority hapoh ki double quotes string; |
05:19 | Save ia kane ka file bad khang ia ka. |
05:22 | To ngin ia pule kumno ban declare ia bun tylli ki variables. |
05:27 | Ban leh ia kane, plie ia ka file ba thymmai ha ka Text Editor. |
05:31 | Ha ka Terminal, type: gedit multivar dot pl space ampersand bad shon Enter. |
05:42 | Kane kan sa plie ia ka "multivar dot pl" file ha ka text editor. |
05:48 | Mynta, type: |
05:50 | dollar firstVar comma dollar secondVar semicolon bad shon Enter. |
06:00 | Ban copy ia u value jong u variable dollar firstVar sha u dollar secondVar, type: |
06:07 | dollar firstVar space equal to space dollar secondVar semicolon bad shon Enter. |
06:19 | Baroh ki mathematical operations kum addition, subtraction, multiplication, division, lah ban leh ha kine ki variables |
06:30 | To ngin ia peit kumno ngi lah ban ioh ia kane da kaba pyndonkam ia ka Perl. |
06:34 | Phai sha ka text editor. |
06:36 | Bad mynta to ngin ia assign ia u value 10 ha baroh kine ki variables da kaba type, |
06:41 | dollar firstVar equal to dollar secondVar equal to ten semicolon bad shon Enter. |
06:51 | Mynta, ban print ia kine ki values, type: |
06:55 | print double quote firstVar: dollar firstVar and secondVar: dollar secondVar backslash n close double quotes semicolon shon Enter. |
07:17 | Mynta save ia kane ka file. |
07:19 | Mynta, to ngin ia pyndap ia ki values ha ar tylli ki variables. |
07:23 | Na ka bynta kane, type: |
07:25 | dollar addition space equal to space dollar firstVar space plus space dollar secondVar semicolon bad shon Enter. |
07:43 | Phin iohi, ngi khlem declare ia u variable addition. |
07:47 | Sa shisien, ban print ia u value jong u variable addition, type: |
07:53 | print double quote Addition is dollar addition backslash n close double quote semicolon. |
08:05 | Save ia kane ka file. |
08:07 | Ban lum thup ia kane ka file, sa shisien type ha ka terminal: |
08:12 | perl hyphen c multivar dot pl |
08:18 | Kam don ka syntax error, te ngi lah ban execute ia ka script |
08:24 | Da kaba type perl multivar dot pl. |
08:30 | Kane kan sa pynmih ia ka output kumba lah pynthaba. |
08:34 | Ha kajuh ka rukom, pyrshang ia ka subtraction, multiplication bad division. |
08:38 | Nga lah thoh ia u code hangne. |
08:41 | Mynta, to ngin save ia kane ka file bad khang ia ka. |
08:46 | Mynta lum thup ia ka file da kaba type |
08:48 | perl hyphen c multivar dot pl |
08:54 | Kam don ka syntax error. Te, ngi lah ban execute ia ka script kum perl multivar dot pl |
09:01 | Ha kapor ba ngi execute, ka output kan sa long kumne. |
09:06 | Da kane ngi lah poi sha kaba kut jong kane ka jinghikai. |
09:11 | Ha kane ka jinghikai, ngi lah pule shaphang |
09:14 | Ban declare bad pyndonkam ia ki scalar variables ha ka Perl. |
09:18 | Assignment: |
09:20 | Declare ia u number variable. |
09:22 | Assign 10 ha u. |
09:24 | Print ia u variable ba lah declare. |
09:26 | Declare 2 tylli ki string variables. |
09:29 | Assign ia kine ki values sha ki - “Namaste ” bad “India”. |
09:34 | Print ia ki ar tylli ki variable uwei hadien uwei pat. |
09:38 | Peit ia ka video kaba don ha ka link harum. |
09:42 | Ka kyllum lang ia ka Spoken Tutorial project. |
09:45 | Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien. |
09:50 | Ka kynhun jong ka Spoken Tutorial Project: |
09:53 | Ka pynlong ia ki workshops da kaba pyndonkam ia ki spoken tutorials. |
09:56 | Ka ai certificates sha kito kiba pass ha ka online test. |
10:01 | Na ka bynta ki jingtip ba bniah, sngewbha thoh sha ka contact at spoken tutorial dot org. |
10:08 | 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:23 | Kham bun ki jingtip halor kane ka mission kidon ha ka link harum. |
10:29 | Kyrmen phi sngewtynad ia kane ka jinghikai halor ka Perl. Ma nga U Pdiangburom na Shillong, nga pynkut ia kane. |
10:34 | Khublei shibun. |