Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created April 1, 2018 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/e1c26e5ddac0fa2fae796b4ce1065b77 to your computer and use it in GitHub Desktop.
Save zoffixznet/e1c26e5ddac0fa2fae796b4ce1065b77 to your computer and use it in GitHub Desktop.
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