Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.77 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. # This fails because the array value in slot 0 is undef - see $Email_Address1 below:
  2. my $from = (Email::Address->parse($message->header('From')))[0]->address;
  3.  
  4.  
  5. $Email_Address1 = [
  6.                     undef,
  7.                     'beer@oslofest.org',
  8.                     '',
  9.                     'beer@oslofest.org',
  10.                     [
  11.                       \do { my $v = 'hunter@missoula.org' },
  12.                       0
  13.                     ]
  14.                   ];
  15. bless( $Email_Address1, 'Email::Address' );
  16. $ARRAY1 = [ "Caught exception in MojoMojo::View::Email->process \"Can't call method \"a".
  17.         "ddress\" on an undefined value at /usr/local/share/perl/5.10.0/Email/Send".
  18.         "/SMTP.pm line 27.\n at /usr/local/share/perl/5.10.0/Catalyst/Action.pm li".
  19.         "ne 59\"" ];