MrGamoo/Default/ReadInput.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 12 CC 2 SCAR 15.4
CC
2
Cov
0%
readinput
6.0
BEGIN
2.0
CRAP 4.7
1 # -*- perl -*-
2  
3 # Copyright (c) 2010 AdCopy
4 # Author: Jeff Weisberg
5 # Created: 2010-Jan-26 12:01 (EST)
6 # Function: read input - line by line
7 #
8 # $Id: ReadInput.pm,v 1.1 2010/11/01 18:41:54 jaw Exp $
9  
10 package AC::MrGamoo::Default::ReadInput;
11 use strict;
12  
13 # return ( record, eof );
14  
15 sub readinput {
16 my $fd = shift;
17  
18 my $line = scalar <$fd>;
19 return (undef, 1) unless defined $line; # eof
20 return ($line, 0);
21 }
22  
23 1;