I am noticing syntax error for switch case while the syntax is perfectly valid.
For this switch syntax to work without errors 'Switch.pm' needs to be loaded by interpreter as mentioned here - http://perldoc.perl.org/Switch.html
Try adding "use Switch;" in the script before using switch.
Log in to post a comment.
For this switch syntax to work without errors 'Switch.pm' needs to be loaded by interpreter as mentioned here - http://perldoc.perl.org/Switch.html
Try adding "use Switch;" in the script before using switch.