Maybe the file is empty?
Have you inspected how many elements there are in @array?
On further inspection of your source code, the variable $dir_txt_files is named in a way that suggests that it is not a filename. This is furthered by you assigning it the value stuff/. But Tie::File wants a filename, not something else.
Maybe you want to use glob or File::Find to find files?
In reply to Re: Use of uninitialized value in tie array
by Corion
in thread Use of uninitialized value in tie array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |