[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/30: gnu: Add perl-autovivification.
From: |
Ricardo Wurmus |
Subject: |
03/30: gnu: Add perl-autovivification. |
Date: |
Sun, 27 Nov 2016 08:50:08 +0000 (UTC) |
rekado pushed a commit to branch master
in repository guix.
commit 3f1df54cc059abc326c6691ea305f6676bc89c8a
Author: Ricardo Wurmus <address@hidden>
Date: Wed Nov 23 16:01:39 2016 +0100
gnu: Add perl-autovivification.
* gnu/packages/perl.scm (perl-autovivification): New variable.
---
gnu/packages/perl.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index e9f3dca..92d973b 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -266,6 +266,33 @@ manipulate, read, and write Zip archive files.")
list manipulation routines.")
(license (package-license perl))))
+(define-public perl-autovivification
+ (package
+ (name "perl-autovivification")
+ (version "0.16")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/V/VP/VPIT/"
+ "autovivification-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1422kw9fknv7rbjkgdfflg1q3mb69d3yryszp38dn0bgzkqhwkc1"))))
+ (build-system perl-build-system)
+ (home-page "http://search.cpan.org/dist/autovivification")
+ (synopsis "Lexically disable autovivification")
+ (description "When an undefined variable is dereferenced, it gets silently
+upgraded to an array or hash reference (depending of the type of the
+dereferencing). This behaviour is called autovivification and usually does
+what you mean but it may be unnatural or surprising because your variables get
+populated behind your back. This is especially true when several levels of
+dereferencing are involved, in which case all levels are vivified up to the
+last, or when it happens in intuitively read-only constructs like
address@hidden The pragma provided by this package lets you disable
+autovivification for some constructs and optionally throws a warning or an
+error when it would have happened.")
+ (license (package-license perl))))
+
(define-public perl-base
(package
(name "perl-base")
- branch master updated (a82f0b3 -> 253cdd6), Ricardo Wurmus, 2016/11/27
- 04/30: gnu: Add perl-business-isbn-data., Ricardo Wurmus, 2016/11/27
- 03/30: gnu: Add perl-autovivification.,
Ricardo Wurmus <=
- 09/30: gnu: Add perl-data-compare., Ricardo Wurmus, 2016/11/27
- 05/30: gnu: Add perl-business-isbn., Ricardo Wurmus, 2016/11/27
- 18/30: gnu: Add perl-ipc-cmd., Ricardo Wurmus, 2016/11/27
- 10/30: gnu: Add perl-data-uniqid., Ricardo Wurmus, 2016/11/27
- 02/30: gnu: Add perl-mojolicious., Ricardo Wurmus, 2016/11/27
- 14/30: gnu: Add perl-encode-eucjpascii., Ricardo Wurmus, 2016/11/27
- 13/30: gnu: perl-encode-detect: Move to alphabetical position., Ricardo Wurmus, 2016/11/27
- 08/30: gnu: Add perl-business-ismn., Ricardo Wurmus, 2016/11/27
- 01/30: gnu: Add threaded variants of fftw and fftwf for Ardour and mod-host., Ricardo Wurmus, 2016/11/27
- 07/30: gnu: Add perl-tie-cycle., Ricardo Wurmus, 2016/11/27