lib/OSS/Fileops.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
read_file
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2  
3 package OSS::Fileops;
4  
5 sub new
6 {
7 my($class) = shift;
8 my($self) = {};
9 bless($self,$class);
10 return($self);
11 };
12  
13 sub read_file
14 {
15 my($self) = shift;
16 my($filename) = shift;
17 open(FILE, $filename) or die($!);
18 my(@file) = <FILE>;
19 close(FILE);
20 return(@file);
21 };
22  
23 1;