Take a look at readdir. It doesn't return a list! My apologies - it does in list context. Take a look anyway for an example of the error checking.
You should add some error checking to opendir. Also, use strict; and use warnings; may provide useful information.
Update: As above - thanks graff
-- Ken
In reply to Re: Deferencing a hash
by kcott
in thread Grep on a list of files in directory
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |