in reply to Re: Deferencing a hash
in thread Grep on a list of files in directory

Take a look at readdir. It doesn't return a list!

Um, look again.

readdir DIRHANDLE
Returns the next directory entry for a directory opened by "opendir". If used in list context, returns all the rest of the entries in the directory. If there are no more entries, returns an undefined value in scalar context or a null list in list context.
Using readdir in a list context is a frequently used idiom.

Replies are listed 'Best First'.
Re^3: Deferencing a hash
by kcott (Archbishop) on Oct 29, 2010 at 03:34 UTC

    Thanks for pointing that out - I've updated the node.

    -- Ken