My latest assignment from my book (not a school assignmetn, I don't know if you have rules for that here. I am teaching myself perl.) asks me to create a program that can read another program line by line and reverse each line. I don't necessarily want the answer yet but I am getting a particularly unhelpful error that I can't debug. How do I fix it?
The error is "syntax error at ./ioexperiment.plx line 7, near "foreach @line "
Execution of ./ioexperiment.plx aborted due to compilation errors."
The code is: