in reply to Trying to read print in a loop inside a subroutine
Not the solution, but open files this way:open(REPLAY_FILE, "+<$rpl")
See open for more information.open my $REPLAY_FILE, '+<', $rpl or die $!; while (my $line = <$REPLAY_FILE>) { #... do stuff with $line } close $REPLAY_FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to read print in a loop inside a subroutine
by Anonymous Monk on May 22, 2020 at 04:58 UTC |