Well, your first attempt opens the same directory over and over, doing nothing with the contents. Your second attempt tries to read from R as though it's a filehandle, but it's a dirhandle, which is quite different.
"This word, I do not think it means what you think it means." If you opendir something, use readdir to read it, not the diamond <> operator. More info at perlfunc:opendir.
HTH
In reply to Re: subs && typeglobs
by VSarkiss
in thread subs && typeglobs
by s0ttle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |