More Conditional statements - English
- subtitles off
- captions off
- English
This is a sample video. To access the full content,
please
Login
- 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.
-
1
Overview and Installation of PERL -
2
Variables in Perl -
3
Comments in Perl -
4
for for each loops -
5
while do while loops -
6
Conditional statements -
More Conditional statements -
8
Data Structures -
9
Arrays -
10
Array functions -
11
Hash in Perl -
12
Functions in Perl -
13
Blocks in Perl -
14
Access Modifiers in PERL -
15
Referencing and Dereferencing -
16
Special Variables in PERL -
17
File Handling -
18
Exception and error handling in PERL -
19
Including files or modules -
20
Sample PERL program -
21
Perl Module Library (CPAN) -
22
Downloading CPAN module -
23
Perl and HTML
Questions posted on ST Forums:
4462 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

