You'll not be wanting open rather opendir:
opendir DIRHANDLE,EXPR
In reply to Re: Bad file descriptor by quidity in thread Bad file descriptor by Anonymous Monk