I'm getting this error on my program and don't know what's the problem?
syntax error at testing5 line 38, near "chomp($choice= <STDIN>);"
(Might be a runaway multi-line )) string starting on line 37)
Here is the code:
line34 until ($choice == q) {print "What would you like to convert?\n\n"};
line35 chomp($choice=< STDIN>);
line37 if ($choice == 1) {$choice = ($choice - 32) * 5/9;
line38 print "Converts to $choice Celsius.\n\n";}
syntax error at testing5 line 38, near "chomp($choice= <STDIN>);"
(Might be a runaway multi-line )) string starting on line 37)
Here is the code:
line34 until ($choice == q) {print "What would you like to convert?\n\n"};
line35 chomp($choice=< STDIN>);
line37 if ($choice == 1) {$choice = ($choice - 32) * 5/9;
line38 print "Converts to $choice Celsius.\n\n";}
Comment