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;
In reply to Re: Trying to read print in a loop inside a subroutine
by perlfan
in thread Trying to read print in a loop inside a subroutine
by kaushik9918
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |