Advertisement
HwapX

Brainfuck Compiler Usage

Dec 19th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.32 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. use warnings;
  3. use strict;
  4.  
  5. use Brainfuck::Compiler;
  6.  
  7. my $bfc = Brainfuck::Compiler->new;
  8.  
  9. my $bin = $bfc->compile('++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.');
  10.  
  11. open my $fh, ">bf.com";
  12. binmode $fh;
  13. print $fh $bin;
  14. close $fh;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement