3 ms·
https://docs.perl6.org/type/Str#(Cool)_method_IO https://docs.perl6.org/type/Str#(Cool)_method_IO leads you to: https://docs.perl6.org/type/IO$COLON$COLONPath h
by gfldex 10y ago
https://docs.perl6.org/type/Str#(Cool)_method_IO https://docs.perl6.org/type/Str#(Cool)_method_IO
leads you to:
https://docs.perl6.org/type/IO$COLON$COLONPath https://docs.perl6.org/type/IO$COLON$COLONPath
leads you to:
https://docs.perl6.org/type/IO$COLON$COLONPath#(Cool)_method_words https://docs.perl6.org/type/IO$COLON$COLONPath#(Cool)_method...
It's a bit of a trap, I agree and we should fix it. Having all exceptions listed is on the list and will add another few hundred man hours to the nearly 5000 we invested in the docs so far.
If you really want to be verbose you can always write `open('foo.txt', :r).Str.split(/\W/)`. If you learn a new language there will be buildins that are well tested and may be more efficient then your solution (it isn't right now for your example. Rakudo does it exactly your way). It can be worth your time to learn what the standard library provides you with -- in any language that is.
- gfldex 10y agofixed with https://github.com/perl6/doc/commit/d1fe150239 https://github.com/perl6/doc/commit/d1fe150239 The lack of feedback from actual language users did slow down Perl 6 development and esp. getting all the holes in the docs plugged.