aboutsummaryrefslogtreecommitdiff
path: root/template/perl/snip-new.pl
diff options
context:
space:
mode:
Diffstat (limited to 'template/perl/snip-new.pl')
-rw-r--r--template/perl/snip-new.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/template/perl/snip-new.pl b/template/perl/snip-new.pl
new file mode 100644
index 0000000..1f987d8
--- /dev/null
+++ b/template/perl/snip-new.pl
@@ -0,0 +1,5 @@
+sub new {
+ my $class = shift;
+ return bless { @_ } , ref $class || $class;
+}
+