1 2 3 4 5 6 7 8 9 10 11 12 13 | #/usr/bin/perl/ $cel = '0'; $fahr = '0'; print 'Enter temperature in Celsius: ' $cel = <STDIN>; $fahr = $cel * 9 / 5 + 32; print "$cel degrees Celsius in Fahrenheit is $fahr."; |
Iy91c3IvYmluL3BlcmwvCgokY2VsID0gJzAnOwokZmFociA9ICcwJzsKCnByaW50ICdFbnRlciB0ZW1wZXJhdHVyZSBpbiBDZWxzaXVzOiAnCiRjZWwgPSA8U1RESU4+OwoKJGZhaHIgPSAkY2VsICogOSAvIDUgKyAzMjsKCnByaW50ICIkY2VsIGRlZ3JlZXMgQ2Vsc2l1cyBpbiBGYWhyZW5oZWl0IGlzICRmYWhyLiI7Cgo=
-
upload with new input
-
result: Runtime error time: 0s memory: 4596 kB signal: -1
Scalar found where operator expected at prog.pl line 7, near "$cel" (Missing semicolon on previous line?) syntax error at prog.pl line 7, near "$cel " Execution of prog.pl aborted due to compilation errors.



