in reply to Re^2: I'm having a strange bug with basic file input. I'm a total newb.
in thread I'm having a strange bug with basic file input. I'm a total newb.
Try adding <INPUT>; after both of these lines
read (INPUT, $test4, 3);
That will read/skip the linefeed which would otherwise remain on each line.
(And also fix $name --> $studentname, of course.)
|
|---|