File Coverage

blib/lib/Language/Befunge/lib/HELO.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 3 3 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             #
2             # This file is part of Language::Befunge.
3             # Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
4             #
5             # This program is free software; you can redistribute it and/or modify
6             # it under the same terms as Perl itself.
7             #
8             #
9              
10             package Language::Befunge::lib::HELO;
11              
12 2     2   4041 use strict;
  2         5  
  2         94  
13 2     2   11 use warnings;
  2         4  
  2         399  
14              
15 6     6 1 26 sub new { return bless {}, shift; }
16              
17             sub P {
18 2     2 1 98 print "Hello world!\n";
19             }
20              
21             sub S {
22 2     2 1 6 my (undef, $interp) = @_;
23 2         14 $interp->get_curip->spush( reverse map { ord } split //, "Hello world!\n".chr(0) );
  28         42  
24             }
25              
26              
27             1;
28             __END__