The problem is that while(<IN>) reads a line of the file (and puts it into $_), and $string_parser=<IN> also reads a line from the file. Try this instead:
while ( $string_parser = <IN> ) { print "$string_parser"; # ... }
In reply to Re: file handles and file input
by kyle
in thread file handles and file input
by PerlZealot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |