Skip to content

Instantly share code, notes, and snippets.

@perl6
Created May 30, 2009 20:42
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 perl6/120630 to your computer and use it in GitHub Desktop.
Save perl6/120630 to your computer and use it in GitHub Desktop.
$ cat x.pir
.sub 'main'
$S0 = "140"
$N0 = $S0
say $N0
$I0 = find_encoding 'ucs2'
$S0 = trans_encoding $S0, $I0
$N0 = $S0
say $N0
.end
$ ./parrot x.pir
140
1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment