#627 Syntax error for switch case

open
nobody
Editor (234)
5
2011-05-19
2011-05-19
Anonymous
No

I am noticing syntax error for switch case while the syntax is perfectly valid.

Discussion

  •  
    Attachments
  • abhishekisnot
    abhishekisnot
    2012-04-01

    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.