Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 1, 2019 16:22
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 Whateverable/f40d379e7f995e6b8dd9dc4d82b9797e to your computer and use it in GitHub Desktop.
Save Whateverable/f40d379e7f995e6b8dd9dc4d82b9797e to your computer and use it in GitHub Desktop.
committable6
2018.05,2018.12 run <perl6 -e>, 「sub MAIN($foo, $bar, *@files) { dd $foo; dd $bar; dd @files; dd $*ARGFILES }」, ‘f’, ‘b’, ‘f1’, ‘f2’
¦«2018.05»:
Str $foo = "f"
Str $bar = "b"
["f1", "f2"]
Failed to open file /home/bisectable/git/whateverable/f: No such file or directory
in sub MAIN at -e line 1
in block <unit> at -e line 1
The spawned command 'perl6' exited unsuccessfully (exit code: 1)
in block <unit> at /tmp/ANn2LLAjx_ line 1
«exit code = 1»
¦«2018.12»:
"f"
"b"
Array element = ["f1", "f2"]
IO::ArgFiles.new((IO::Handle.new(path => IO::Special.new("<STDIN>"), chomp => Bool::True, nl-in => $["\n"], nl-out => "\n", encoding => "utf8"),), :nl-in(["\n"]), :encoding("utf8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment