Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created March 19, 2014 16:24
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 pmichaud/9645412 to your computer and use it in GitHub Desktop.
Save pmichaud/9645412 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/p6/nqp$ cat pipe1.pir
.sub 'main' :main
$P0 = new ['Env']
$P0['AAAAAA'] = 'ZZZZZZ'
$P1 = new ['FileHandle']
$P1.'open'("echo $AAAAAA", "wp")
$P1.'close'()
.end
pmichaud@kiwi:~/p6/nqp$ install/bin/parrot pipe1.pir
ZZZZZZ
pmichaud@kiwi:~/p6/nqp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment