You are assigning to @files first from '/dir1' and then you assign to @files from '/dir1/imgs' overwriting the original contents. You need to use push instead of assignment.
In reply to Re: Reading Multiple Directories
by jwkrahn
in thread Reading Multiple Directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |