Results 1 to 2 of 2
  1. #1

    Question on Perl Mail::Internet


    From reading the man page et all on Mail::Internet

    "body() just returns a reference to an anonymous array that contains all the lines of the body of the message."

    Now, I'm trying to figure out how to adjust the body of an email message by adding to the front of the body.

    I thought it could be as simple as

    my @body = $message->body();
    unshift(@body, $customer_id);

    But what I end up with for the body is just the customer_id portion plus something like "ARRAY(0x92f1e9c)".

    Since Mail::Internet->body deals with just a reference to an anonymous array... how do I need to reference the array to add to it? What then do I need to do to put it back when I'm done adding?

    Thank you.
    Last edited by pmabraham; 09-08-2009 at 08:43 PM. Reason: Added ARRAY(0x92f1e9c)

  2. #2
    Join Date
    May 2009
    I think you got this figured out in another post. Let me know if you're still having problems dereferencing in Perl.

Similar Threads

  1. Replies: 0
    Last Post: 11-02-2006, 12:55 PM
  2. Multilanguage mail ?? utf-8 (PERL)
    By actionman in forum Programming Discussion
    Replies: 1
    Last Post: 12-11-2005, 02:24 PM
  3. Perl vs. PHP >> The Internet Gihad
    By JustinH in forum Programming Discussion
    Replies: 189
    Last Post: 08-27-2003, 02:57 PM
  4. [PERL] - Simple perl question...
    By in forum Web Hosting Lounge
    Replies: 4
    Last Post: 04-05-2002, 05:56 PM
  5. Is Perl the main programming language for Internet Web Sites?
    By Fred in forum Hosting Software and Control Panels
    Replies: 21
    Last Post: 03-10-2002, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts