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";}}
254 visits
Outline:if-elsif-else conditional statement lah pyndonkam ban check ia ka specific condition bad lada kadei true ka execute ia ka block ba dei lymda kumta ka executes ia ka default else block. switch kadei ka conditional case statement. Ka case kaba biang ka shah execute lymda kumta ka default case ka shah execute.
if-elsif-else conditional statement lah pyndonkam ban check ia ka specific condition bad lada kadei true ka execute ia ka block ba dei lymda kumta ka executes ia ka default else block. switch kadei ka conditional case statement. Ka case kaba biang ka shah execute lymda kumta ka default case ka shah execute.
Show video info
Pre-requisite