Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Execute-Brain-/Perl/execute-brain-.pl
Normal file
15
Task/Execute-Brain-/Perl/execute-brain-.pl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
my %code = split ' ', <<'END';
|
||||
> $ptr++
|
||||
< $ptr--
|
||||
+ $memory[$ptr]++
|
||||
- $memory[$ptr]--
|
||||
, $memory[$ptr]=ord(getc)
|
||||
. print(chr($memory[$ptr]))
|
||||
[ while($memory[$ptr]){
|
||||
] }
|
||||
END
|
||||
|
||||
my ($ptr, @memory) = 0;
|
||||
eval join ';', map @code{ /./g }, <>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue