From: Vincent Pit Date: Mon, 9 Nov 2015 12:48:29 +0000 (-0200) Subject: Make sure import and unimport don't return anything X-Git-Tag: v0.15~4 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=cd9545fb411da4e5b69ad7fd2f43f8ea879d3ee3 Make sure import and unimport don't return anything --- diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index 531e0e8..aa3f013 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -165,6 +165,8 @@ sub import { $^H |= 0x020000; $^H{+(__PACKAGE__)} = $hint; + + return; } =head2 C @@ -179,6 +181,8 @@ Turns the pragma off. sub unimport { $^H |= 0x020000; $^H{+(__PACKAGE__)} = undef; + + return; } =head1 RUN-TIME INITIALIZER METHOD