Skip to content

Commit 3f70bc4

Browse files
author
david_allan
committed
Added FileWriter pm
1 parent 863010d commit 3f70bc4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Files/FileWriter.pm

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/perl
2+
use strict;
3+
use warnings;
4+
5+
use Path::Class;
6+
use autodie; # die if problem reading or writing a file
7+
8+
package FileWriter;
9+
10+
$FileWriter::VERSION = "0.01";
11+
12+
sub new{
13+
my $class = shift;
14+
my $self = {
15+
name => shift,
16+
lines => shift,
17+
path => shift
18+
};
19+
bless $self, $class;
20+
return $self;
21+
}

0 commit comments

Comments
 (0)