2 # This file is part of Language::Befunge.
3 # Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the same terms as Perl itself.
10 package Language
::Befunge
::lib
::HELO
;
15 sub new
{ return bless {}, shift; }
18 print "Hello world!\n";
22 my (undef, $interp) = @_;
23 $interp->get_curip->spush( reverse map { ord } split //, "Hello world!\n".chr(0) );
33 Language::Befunge::IP::lib::HELO - a Befunge extension to print Hello world!
38 P - print "Hello world!\n"
39 S - store the gnirts "Hello world!\n"0 on the TOSS
43 This extension is just an example of the Befunge extension mechanism
44 of the Language::Befunge interpreter.
51 Create a new HELO instance.
56 Output C<Hello world!\n>.
61 Store the gnirts "Hello world!\n"0 on the TOSS.
71 Jerome Quelin, E<lt>jquelin@cpan.orgE<gt>
74 =head1 COPYRIGHT & LICENSE
76 Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
78 This program is free software; you can redistribute it and/or modify
79 it under the same terms as Perl itself.