Help with Mail::Audit module

From: Ichthus (Ichthus.19o6dn_at_mail.codecomments.com)
Date: 07/20/04

  • Next message: Jürgen Exner: "Re: How to handle input and output of a program executed by System function in perl"
    Date: Tue, 20 Jul 2004 00:43:22 GMT
    
    

    I am trying to use the 'Mail::Audit'
    (http://search.cpan.org/~simon/Mail-Audit-2.1/Audit.pm) module for a
    small project i am working on, mainly using the resend() function. I
    have that working, but I would like to add a footer to the email before
    resending it. Is this possible using the reference that body() returns?
    The documentation states the following:
    > BODY
    >
    > Returns a reference to an array of lines in the body of the email.
    >
    I am a beginner perl programmer, but have extensive experience with PHP
    and C++. This description indicates to me that it returns an actual
    reference (pointer) to the array, so I should be able to modify it. I
    tried every possile combination of array references that I could think
    of, but I could not get it to edit the body of the email that gets
    resent.

    If you could let me know the two lines of code that I need to get this
    reference and then just add a line to the end of the email body, I can
    take it from there.

    Thanks SO much in advance,
    Kevin

    --
    Ichthus
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------
     
    

  • Next message: Jürgen Exner: "Re: How to handle input and output of a program executed by System function in perl"

    Relevant Pages

    • Re: Passing arrays ByVal vs ByRef
      ... reference type (such as an Array), you get a copy of the reference (the ... original array is modified when you modify the passed parameter. ... Convert VB to C#, C++, or Java ...
      (microsoft.public.dotnet.languages.vb)
    • Re: How to pass an Array
      ... > array's reference by Value: Unable to modify the array directly only ... If you give an array reference to a method, ... other, or even discard both. ...
      (comp.lang.java.help)
    • Re: anonymous class questions - why final?
      ... You can't modify the value of the variable "a", but that value is nothing more than a reference to the array. ... All that "final" means in that context is that the variable "a" will always refer to the array that it initially refers to. ...
      (comp.lang.java.programmer)
    • Re: [PHP] while question
      ... a copy of the array, so if you intend to modify it, pass it by reference. ... you are specifying with this code that you want it to place a reference of the value into $value. ... $value = a copy so won't change the original array ...
      (php.general)
    • Re: Help with Mail::Audit module
      ... > small project i am working on, mainly using the resend() function. ... >> Returns a reference to an array of lines in the body of the email. ... > reference to the array, so I should be able to modify it. ...
      (comp.lang.perl.modules)