Simple Dir::glob/Dir::[] and Dir::entries

What would I do without them... ;)
As a side note: is it valid to pass a null pointer there?