unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: [PATCH 02/29] gnu: Add perl-autovivification.
Date: Wed, 23 Nov 2016 22:34:55 +0100	[thread overview]
Message-ID: <20161123213522.2923-3-rekado@elephly.net> (raw)
In-Reply-To: <20161123213522.2923-1-rekado@elephly.net>

* 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
+@code{exists}.  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")
-- 
2.10.2

  parent reply	other threads:[~2016-11-23 21:35 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 21:34 [PATCH 00/29] Add Biber Ricardo Wurmus
2016-11-23 21:34 ` [PATCH 01/29] gnu: Add perl-mojolicious Ricardo Wurmus
2016-11-23 21:34 ` Ricardo Wurmus [this message]
2016-11-23 21:34 ` [PATCH 03/29] gnu: Add perl-business-isbn-data Ricardo Wurmus
2016-11-23 21:34 ` [PATCH 04/29] gnu: Add perl-business-isbn Ricardo Wurmus
2016-11-23 21:34 ` [PATCH 05/29] gnu: Add perl-business-issn Ricardo Wurmus
2016-11-23 21:34 ` [PATCH 06/29] gnu: Add perl-tie-cycle Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 07/29] gnu: Add perl-business-ismn Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 08/29] gnu: Add perl-data-compare Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 09/29] gnu: Add perl-data-uniqid Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 10/29] gnu: Add perl-date-simple Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 11/29] gnu: Add perl-datetime-calendar-julian Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 12/29] gnu: perl-encode-detect: Move to alphabetical position Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 13/29] gnu: Add perl-encode-eucjpascii Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 14/29] gnu: Add perl-encode-jis2k Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 15/29] gnu: Add perl-encode-hanextra Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 16/29] gnu: Add perl-extutils-libbuilder Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 17/29] gnu: Add perl-ipc-cmd Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 18/29] gnu: Add perl-lingua-translit Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 19/29] gnu: Add perl-mozilla-ca Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 20/29] gnu: Add perl-sort-key Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 21/29] gnu: Add perl-text-csv-xs Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 22/29] gnu: Add perl-text-roman Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 23/29] gnu: Add perl-unicode-normalize Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 24/29] gnu: Add perl-unicode-collate Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 25/29] gnu: perl-unicode-linebreak: Update to 2016.003 Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 26/29] gnu: Add perl-xml-libxslt Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 27/29] gnu: Add perl-text-bibtex Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 28/29] gnu: Add biber Ricardo Wurmus
2016-11-23 21:35 ` [PATCH 29/29] gnu: Add biber-2.5 Ricardo Wurmus
2016-11-26 17:46 ` [PATCH 00/29] Add Biber Leo Famulari
2016-11-26 22:45   ` Ricardo Wurmus
2016-11-27  9:29   ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161123213522.2923-3-rekado@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).