Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created July 15, 2017 18:19
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/b2e0be37457273562edc25d9121bf487 to your computer and use it in GitHub Desktop.
Save zoffixznet/b2e0be37457273562edc25d9121bf487 to your computer and use it in GitHub Desktop.
$*IN = IO::Handle.new: :path('-'.IO);
$*IN.open;
$*OUT.open: :w;
my $w = '-'.IO.open: :w;
my $r = '-'.IO.open;
$*IN.slurp(:close); #
$w.put: 'meow w';
$*OUT.put: 'x';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment