summary refs log tree commit diff
path: root/gnu/packages/perl.scm
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-03-20 12:11:28 -0500
committerEric Bavier <bavier@member.fsf.org>2015-03-20 14:22:36 -0500
commit2775b61b75647b6981f370a317e3d1a4d9286c58 (patch)
tree59c760a335fc8776684f227849e7960561560941 /gnu/packages/perl.scm
parentb42c8753d24bf0b8b214fed03346854686e0c650 (diff)
downloadguix-2775b61b75647b6981f370a317e3d1a4d9286c58.tar.gz
gnu: Add Tie-ToObject.
* gnu/packages/perl.scm (perl-tie-toobject): New variable.
Diffstat (limited to 'gnu/packages/perl.scm')
-rw-r--r--gnu/packages/perl.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index e31dd7d45d..0dca3cdfb5 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -3705,6 +3705,28 @@ can also be set to any arbitrary supplied order. The familiar perl array
 operations can also be performed on the IxHash.")
   (license (package-license perl))))
 
+(define-public perl-tie-toobject
+  (package
+    (name "perl-tie-toobject")
+    (version "0.03")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/N/NU/NUFFIN/"
+                           "Tie-ToObject-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1x1smn1kw383xc5h9wajxk9dlx92bgrbf7gk4abga57y6120s6m3"))))
+    (build-system perl-build-system)
+    (propagated-inputs
+     `(("perl-test-simple" ,perl-test-simple)))
+    (home-page "http://search.cpan.org/dist/Tie-ToObject")
+    (synopsis "Tie to an existing Perl object")
+    (description "This class provides a tie constructor that returns the
+object it was given as it's first argument.  This way side effects of calling
+$object->TIEHASH are avoided.")
+    (license (package-license perl))))
+
 (define-public perl-time-local
   (package
     (name "perl-time-local")