-
-
Save zoffixznet/e1c26e5ddac0fa2fae796b4ce1065b77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018.03.129 zoffix@VirtualBox~/R$ cat abc.def | |
«'configuration a' tom one», | |
«'configuration b' dick two», | |
«'configuration c' harry three» | |
2018.03.129 zoffix@VirtualBox~/R$ cat main.p6 | |
use lib '.'; | |
my @setting; | |
my @confs := EVALFILE 'abc.def'; | |
f |$_ for @confs; | |
say @setting; | |
sub f($text, $user, $setting) { | |
say $text; | |
@setting.append: [$user, $setting] | |
} | |
2018.03.129 zoffix@VirtualBox~/R$ perl6 main.p6 | |
configuration a | |
configuration b | |
configuration c | |
[tom one dick two harry three] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment