in reply to Grep on a list of files in directory
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deferencing a hash
by graff (Chancellor) on Oct 29, 2010 at 03:26 UTC | |
by kcott (Archbishop) on Oct 29, 2010 at 03:34 UTC |