PERL/C2/Conditional-statements/Khasi

From Script | Spoken-Tutorial
Revision as of 23:26, 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 if and if-else conditional statements ha ka PERL.
00:07 Ha kane ka jinghikai, ngin ia pule shaphang ka:
00:09 if statement bad ka
00:11 if-else statement ha ka Perl. Nga pyndonkam da ka Ubuntu Linux 12.04 operating system bad ka Perl 5.14.2.
00:20 Ngan sa pyndonkam ruh ia ka gedit Text Editor.
00:24 Phi lah ban pyndonkam ia kano kano ka text editor katkum kamon jong phi.
00:28 Phi dei ban don ia ka jingtip jong ki variables bad comments ha ka Perl.
00:33 Ki jingtip shaphang ki for, foreach , while bad do-while loops ha ka Perl kan long ka jingmyntoi kaban iarap shibun.
00:40 Sngewbha leit sha ki spoken tutorials kiba iadei ha ka “Spoken Tutorial” website.
00:45 Ka Perl ka ai ia ki conditional statements kumne harum:
00:49 if, if-else
00:51 if-elsif-else bad
00:53 switch . Ha kane ka jinghikai, ngin ia peit ia ka if bad if-else statements.
00:59 if statement ha ka Perl lah ban pyndonkam
01:01 Ban execute ia u code tang haba ka condition kaba la ai ka iadei.
01:07 Ka syntax jong ka if conditional statement kalong kumne harum:
01:11 if space open bracket condition close bracket space open curly bracket
01:19 Enter. Code semicolon u ban sa shah execute ynda ka condition kadei true
01:25 Enter close curly bracket.
01:29 U code uba don hapoh ka if statement un sa shah execute tang ynda ka condition kadei true.
01:36 Mynta, to ngin ia peit ia ka nuksa jong ka if statement.
01:40 Plie ia ka Terminal bad type:
01:43 gedit conditionalBlocks dot pl space &(ampersand )
01:49 Bad shon “Enter”.
01:52 Kane kan sa plie ia ka conditionalBlocks.pl file ha ka gedit.
01:57 Type ia u code kumba la pyni ha ka screen.
02:02 Hangne ngi lah pynithuh ia ka condition jong ka “if” kaba check ia ka value jong ka variable “count”.
02:09 Kynmaw ia ka equal to equal to sign hangne. Kane kadei ka comparison operator.
02:15 Ka condition $count equal to equal to 5 ka check ia u value jong u variable count.
02:23 Ynda u lah ia ryngkat bad u 5, u code uba don hapoh ka “if” block un sa shah execute.
02:28 Mynta, shon ctrl+s ban save ia ka file.
02:32 Nangta phai sha ka terminal.
02:36 Pynthikna ba phi don ha ka directory ha kaba phi save ia ka file.
02:41 Type ia kane harum ban check na ka bynta kano kano ka thup lane syntax kaba bakla:
02:46 perl hyphen c conditionalBlocks dot pl
02:53 Bad shon “Enter.”
02:55 Ka lain kaba harum kan sa pyni ha ka terminal window:
02:59 "conditionalBlocks.pl syntax OK".
03:04 Kumba kam don ka jingbakla ha ka compilation lane ka syntax, ngin ia execute ia ka Perl script da kaba type:
03:10 perl conditionalBlocks dot pl
03:14 Bad shon “Enter”.
03:16 Ka output harum kan sa pyni ha ka terminal.
03:19 "I am inside if statement".
03:23 Phai biang sha ka “gedit”.
03:26 Da kawei pat ka rukom, ngi lah ban thoh ia katei ka statement “if” kum:
03:31 print space double quotes I am inside if statement backslash n close double quotes space if space open bracket dollar count space equal to equal to space 5 close bracket semicolon.
03:57 Mynta, to ngin ia peit ia ka “if-else” statement.
04:01 Ia kane ka statement la pyndonkam ynda u nongpyndonkam u kwah ban execute-
04:06 Ia u code ynda ka condition kadei “True” bad
04:09 Uwei pat u code ynda ka condition kadei “False”.
04:13 Ka syntax na ka bynta ka “if-else” condition kadei kumne harum:
04:17 if space open bracket condition close bracket space open curly bracket shon Enter.
04:27 U code semicolon
04:29 Un sa execute ynda ka “if” condition kadei “true”,
04:32 Shon “Enter”
04:34 close curly bracket space else space open curly bracket Enter
04:41 Uwei pat u code semicolon
04:43 Un sa execute ynda ka “if” condition kadei “false”
04:47 Shon “Enter” close curly bracket.
04:51 Mynta, sa shisien leit sha ka conditionalBlocks.pl file kaba ngi lah dep shna lypa ha ka gedit.
04:58 Assign 4 ia u “count” variable. Nangta ha kaba khatduh jong ka if block, type: space
05:07 else
05:09 space open curly bracket shon Enter
05:14 print space double quotes I am inside else statement backslash n double quotes complete semicolon.
05:30 Shon “Enter” bad close curly bracket.
05:34 Hangne, 4 lah assign ia u variable $count.
05:38 Namar ba u value jong ka count variable kam iadei bad u 5,
05:43 U code hapoh jong u “if” block un sa nym shah execute.
05:47 Ha ka jaka jong ka, u code ba hapoh ka “else” block kan sa shah execute.
05:52 Mynta shon “Ctrl + S” ban “save” ia ka file.
05:56 Mynta phai sha ka terminal
05:59 Bad type: perl hyphen c conditionalBlocks dot pl ban check ia kano kano ka jingbakla ha ka compilation lane ka syntax.
06:11 Mynta, shon “Enter”.
06:13 Ka lain kaba harum kan sa pyni ha ka terminal:
06:17 "conditionalBlocks.pl syntax OK"
06:20 Namar ba kam don ka jingbakla ha ka compilation lane ha ka syntax, ngin ia execute mynta ia ka “Perl script”.
06:27 Type: perl conditionalBlocks dot pl
06:33 Bad shon “Enter”.
06:35 Ka output harum kan sa pyni ha ka terminal.
06:39 "I am inside else statement".
06:44 To ngin ia batai kyllum.
06:46 Ha kane ka jinghikai, ngi la pule ia ka:
06:49 if bad if-else conditional statements ha ka Perl
06:53 Da kaba pyndonkam da ki sample programs.
06:55 Hangne ka kam na ka bynta jong phi:
06:57 Print “It is an open source language”
07:01 Ynda ka variable ka lah pynithuh ba u don ia u value ‘Perl’
07:04 Lymda kumta, print “It's a proprietary language”.
07:08 Peit ia ka video kaba don ha ka link harum.
07:11 Ka batai ia ka Spoken Tutorial project.
07:15 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka hadien.
07:20 Ka kynhun jong ka Spoken Tutorial project:
07:22 Ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials.
07:26 Ka ai certificates sha kito kiba pass ha ka online test.
07:31 Na ka bynta kham bun ki jingtip, sngewbha thoh sha ka contact at spoken hyphen tutorial dot org.
07:37 "Spoken Tutorial" project kadei shi bynta jong ka "Talk to a Teacher" project.
07:42 La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Sorkar India.
07:50 Kham bun ki jingtip halor kane ka mission kidon ha ka spoken hyphen tutorial dot org slash NMEICT hyphen Intro.
08:00 Kyrmen ba phi sngewtynnad ia kane ka jinghikai jong ka “Perl”.
08:04 Ma nga U Pdiangburom na Shillong, nga pynkut ia kane.
08:06 Khublei shibun.

Contributors and Content Editors

Pdiangburom