Help for this page
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 +"; } }
syntax error at ./assembly2hex.pl line 21, near "'add' { " syntax error at ./assembly2hex.pl line 22, near "'sub' { "
#!/usr/bin/perl ... } }