INN commit: trunk/doc/pod (hook-perl.pod)

INN Commit Russ_Allbery at isc.org
Wed May 6 17:55:43 UTC 2009


    Date: Wednesday, May 6, 2009 @ 10:55:42
  Author: iulius
Revision: 8448

Specify that "delete $hdr{header}" will not always work
in Perl innd filter hook.

Modified:
  trunk/doc/pod/hook-perl.pod

---------------+
 hook-perl.pod |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: hook-perl.pod
===================================================================
--- hook-perl.pod	2009-05-06 17:25:50 UTC (rev 8447)
+++ hook-perl.pod	2009-05-06 17:55:42 UTC (rev 8448)
@@ -341,7 +341,10 @@
   $hdr{'Organization'} = 'My new organization';
   $modify_headers = 1;
 
-To delete the Organization: header, you can use:
+To delete the Organization: header, you should not use
+C<delete $hdr{'Organization'}> (this syntax may work with
+some headers, and not with other headers).  Instead, you are
+encouraged to use:
 
   $hdr{'Organization'} = undef;
   $modify_headers = 1;




More information about the inn-committers mailing list