More Conditional statements - English
Play
Current Time 0:00
/
Duration Time 0:00
Remaining Time -0:00
Loaded: 0%
Progress: 0%
0:00
Fullscreen
00:00
Mute
Subtitles
- subtitles off
Captions
- captions off
- English
Chapters
- Questions posted on Forums
- PERL Tutorials - English
-
error regarding switch program.
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: C:/Perl64/site/lib C:/Perl64/lib) at sampleswitch.pl line 2.BEGIN failed--compilation aborted at sampleswitch.pl line 2.code:#!/usr/bin/perluse Switch;$var = 'Linux';switch ($var) { case 'Perl' {print "I am Perl\n";} case 'Java' {print "I am Java\n";} case 'Linux' {print "I am Linux\n";} else {print "I am not a computer language\n";}}
06-07M 40-50S Sakshi@20
Answer last updated on: April 12, 2025, 11:02 p.m.
-
1Overview and Installation of PERL
-
2Variables in Perl
-
3Comments in Perl
-
4for for each loops
-
5while do while loops
-
6Conditional statements
-
More Conditional statements
-
8Data Structures
-
9Arrays
-
10Array functions
-
11Hash in Perl
-
12Functions in Perl
-
13Blocks in Perl
-
14Access Modifiers in PERL
-
15Referencing and Dereferencing
-
16Special Variables in PERL
-
17File Handling
-
18Exception and error handling in PERL
-
19Including files or modules
-
20Sample PERL program
-
21Perl Module Library (CPAN)
-
22Downloading CPAN module
-
23Perl and HTML
Questions posted on ST Forums:
3915 visits
Outline:
if-elsif-else conditional statement is used to check specific condition and if it is true execute the respective block else execute the default else block. switch is conditional case statement. Satisfied case gets execute else the default case gets execute.
Width: | 960 | Height: | 720 |
---|---|---|---|
Duration: | 00:11:06 | Size: | 6.8 MB |
Show video info