switch ($opcode) { 'add' { print "\n The opcode reported was add with hex value 4"; } 'sub' { print "\n The opcode reported was sub with hex value 5"; } }