From 56d853d63a6854db92d028153be6f2aa285a68c6 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 19 Feb 2011 17:38:12 +0000 Subject: [PATCH] In Errno, use typeglob aliasing instead of subref to typeglob assignment. Typeglob aliasing saves just over .5K, because fewer internal structures are created. In the general case the behaviour of the two differs, but as the only package variables of these names are subroutines, and we are within our own namespace, there is no difference here. --- ext/Errno/Errno_pm.PL | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 5621abd..5725de8 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -406,8 +406,7 @@ sub STORE { Carp::confess("ERRNO hash is read only!"); } -*CLEAR = \&STORE; -*DELETE = \&STORE; +*CLEAR = *DELETE = \*STORE; # Typeglob aliasing uses less space sub NEXTKEY { each %err; -- 2.7.4