in reply to subs && typeglobs
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subs && typeglobs
by s0ttle (Scribe) on Aug 04, 2001 at 00:03 UTC | |
by tachyon (Chancellor) on Aug 04, 2001 at 00:23 UTC | |
by s0ttle (Scribe) on Aug 04, 2001 at 13:44 UTC | |
by tachyon (Chancellor) on Aug 04, 2001 at 14:49 UTC | |
by s0ttle (Scribe) on Aug 04, 2001 at 15:41 UTC | |
|
Re: subs && typeglobs
by s0ttle (Scribe) on Aug 04, 2001 at 00:01 UTC |