Re: How to use sub/method 'dir'

2018-11-24 Thread Timo Paulssen
The dir method gives you entries in the directory you pass. If you don't pass a test it'll use the default test which is none(".", ".."), i.e. "anything except . and ..". I'm not sure why using { .IO.d } as the test would not give you b, though. Can you check what "a/b".IO.d outputs? Maybe that

How to use sub/method 'dir'

2018-11-24 Thread Fernando Santagata
Hello, I think that I don't understand how the 'test' argument of 'dir' works. I have a directory 'a', which contains a subdirectory 'b' and a file 'c'; I want to select only the subdirectories of 'a'. Using the REPL I tried to ask the content of the directory 'a': > my @dirs = dir('a')