... what could be the issue here.
Allow Perl to suggest what the issue might be by using the warnings pragma, which would have warned you that $string[4] was undefined (and if you're a beginner, also diagnostics for more verbose suggestions). In addition, I would strongly suggest using the strict pragma to disallow certain practices that experience has shown to be problematic, e.g., use of variables that have not been pre-declared. So:
use strict;
use warnings;
use diagnostics; # when you are desperate
In reply to Re: reading the 5th element from file doesn't work.
by AnomalousMonk
in thread reading the 5th element from file doesn't work.
by singho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |