# Rakudo > dir build parrot_install Makefile VERSION parrot docs Configure.pl README dynext t src tools CREDITS LICENSE Test.pm > dir 't' 00-parrot 02-embed spec harness 01-sanity pmc spectest.data
> dir 'src/core', test => any(/^C/, /^P/) Parcel.pm Cool.pm Parameter.pm Code.pm Complex.pm CallFrame.pm Positional.pm Capture.pm Pair.pm Cool-num.pm Callable.pm Cool-str.pm
> slurp 'VERSION' 2010.11
> my $fh = open 'CREDITS' IO()<0x1105a068> > $fh.getc # = > $fh.get # pod > $fh.close; $fh = open 'new', :w # IO()<0x10f3e704> > $fh.print('foo Bool::True > $fh.say('bar Bool::True > $fh.close; say slurp('new') foobar
> 'LICENSE'.IO ~~ :e # ? Bool::True > 'LICENSE'.IO ~~ :d # ? Bool::False > 'LICENSE'.IO ~~ :f # ? Bool::True
find(:dir<t/dir1>, :type<file>, :name(/foo/))
open('new', :w).close
given open('foo', :w) { .say(' !'); .close }
Source: https://habr.com/ru/post/252509/
All Articles